From 6920eb5798f2d9f25e5ea1af2ba86122cf408bd1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 21 May 2008 08:10:14 +0200 Subject: [PATCH] Replace deprecated luaL_openlib() by luaL_register() Signed-off-by: Julien Danjou --- tools/cpkg2c.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cpkg2c.mll b/tools/cpkg2c.mll index 388973a..a942ee7 100644 --- a/tools/cpkg2c.mll +++ b/tools/cpkg2c.mll @@ -585,7 +585,7 @@ int luaopen_%s(lua_State *L) %s_init(); /* create methods table, add it the the table of globals */ - luaL_openlib(L, \"%s\", luaM_%s_methods, 0); + luaL_register(L, \"%s\", luaM_%s_methods); methods = lua_gettop(L); lua_newtable(L); /* for new members */ -- 2.20.1