luaL_unref() private method

private luaL_unref ( IntPtr luaState, int t, int n ) : void
luaState System.IntPtr
t int
n int
return void
Esempio n. 1
0
 protected override void OnDisposeUnmangedResources()
 {
     base.OnDisposeUnmangedResources();
     Application.Invoke(() =>
     {
         if (_luaState == IntPtr.Zero)
         {
             return;
         }
         const int luaRegistryIndex = (int)LuaInnerIndex.LUA_REGISTRYINDEX;
         Lua.luaL_unref(_luaState, luaRegistryIndex, _luaFunctionRefIndex);
         _luaState            = IntPtr.Zero;
         _luaFunctionRefIndex = 0;
     });
 }