public static void HookUnRef(IntPtr L, int reference)
 {
     if (isHook)
     {
         LuaLib.DoRefLuaFun(L, "lua_miku_remove_ref_fun_info", reference);
     }
 }
 public static void HookUnRef(IntPtr L, int reference, LuaDLL.tolua_getref_fun refFun = null)
 {
     if (isHook)
     {
         LuaLib.DoRefLuaFun(L, "lua_miku_remove_ref_fun_info", reference, refFun);
     }
 }
        public static void HookUnRef(IntPtr L, int reference)
        {
#if XLUA || TOLUA || SLUA
            LuaDLL.lua_getref(L, reference);
            LuaLib.DoRefLuaFun(L, "lua_miku_remove_ref_fun_info");
            LuaDLL.lua_pop(L, 1);
#endif
        }
Beispiel #4
0
        public static void HookRef(IntPtr L)
        {
#if XLUA || TOLUA || SLUA
            if (isHook)
            {
                LuaLib.DoRefLuaFun(L, "lua_miku_add_ref_fun_info");
            }
#endif
        }
 public static void HookRef(IntPtr L, int reference)
 {
     if (isHook)
     {
         HookLuaSetup.RegisterAction(() =>
         {
             LuaLib.DoRefLuaFun(L, "lua_miku_add_ref_fun_info", reference);
         });
     }
 }
        public static void HookUnRef(IntPtr L, int reference)
        {
#if XLUA || TOLUA || SLUA
            if (isHook)
            {
                HookLuaSetup.RegisterAction(() =>
                {
                    LuaLib.DoRefLuaFun(L, "lua_miku_remove_ref_fun_info", reference);
                });
            }
#endif
        }