[lua] Use luaL_register() instead of deprecated luaL_openlib()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4bbb13b07a
commit
fe3c152f2b
4
lua.c
4
lua.c
|
@ -277,8 +277,8 @@ luaA_openlib(lua_State *L, const char *name,
|
|||
lua_pushvalue(L, -2); /* dup metatable*/
|
||||
lua_settable(L, -3); /* metatable.__index = metatable */
|
||||
|
||||
luaL_openlib(L, NULL, meta, 0);
|
||||
luaL_openlib(L, name, methods, 0);
|
||||
luaL_register(L, NULL, meta);
|
||||
luaL_register(L, name, methods);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue