From fe3c152f2b8e163648489464b39a1f6d9016264a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 20 May 2008 19:35:01 +0200 Subject: [PATCH] [lua] Use luaL_register() instead of deprecated luaL_openlib() Signed-off-by: Julien Danjou --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua.c b/lua.c index 8218f5ff..43b796c3 100644 --- a/lua.c +++ b/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