Exemple #1
0
 public static void toluaL_unref_replace(IntPtr L, int reference)
 {
     lock (m_Lock)
     {
         if (isHook)
         {
             LPLuaHook.HookUnRef(L, reference, tolua_Getref_Fun);
         }
         toluaL_unref(L, reference);
     }
 }
Exemple #2
0
 public static void luaL_unref_replace(IntPtr luaState, int registryIndex, int reference)
 {
     lock (m_Lock)
     {
         if (isHook)
         {
             LPLuaHook.HookUnRef(luaState, reference);
         }
         LuaDLL.luaL_unref(luaState, registryIndex, reference);
     }
 }