[lua] Use luaL_register() instead of deprecated luaL_openlib()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-20 19:35:01 +02:00
parent 4bbb13b07a
commit fe3c152f2b
1 changed files with 2 additions and 2 deletions

4
lua.c
View File

@ -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