We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1c25c2 + 849fbf0 commit b1160a7Copy full SHA for b1160a7
Assets/Plugins/Slua_Managed/LuaVarObject.cs
@@ -528,6 +528,8 @@ static public int methodWrapper(IntPtr l)
528
LuaDLL.lua_createtable(l, 0, 1);
529
pushValue(l, methodWrapper);
530
LuaDLL.lua_setfield(l, -2, "__call");
531
+ LuaDLL.lua_pushcfunction(l, lua_gc);
532
+ LuaDLL.lua_setfield(l, -2, "__gc");
533
LuaDLL.lua_setfield(l, LuaIndexes.LUA_REGISTRYINDEX, ObjectCache.getAQName(typeof(LuaCSFunction)));
534
}
535
0 commit comments