public void L_Unref(int t, ref int reference) { if (reference != LuaAPI.LUA_REFNIL) { LuaAPI.luaL_unref(this.m_lua, t, reference); reference = LuaAPI.LUA_REFNIL; } }