mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
compat52
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
LUALIB_API void
|
||||
luaL_init(lua_State *L) {
|
||||
lua_pushglobaltable(L);
|
||||
lua_setglobal(L, "_ENV");
|
||||
lua_pushglobaltable(L);
|
||||
lua_rawseti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS);
|
||||
int mt = lua_pushthread(L);
|
||||
|
||||
Reference in New Issue
Block a user