Save the function into the Lua registry with luaL_ref: int r = luaL_ref(L, LUA_REGISTRYINDEX); Pull the reference back onto the Lua stack ...
確定! 回上一頁