From 110555a1b3faf56a2b14b7162610daf546b98e75 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 3 Oct 2018 06:00:00 +0330 Subject: fix --- luatablegen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/luatablegen.py b/luatablegen.py index d172939..559a8c5 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -71,6 +71,7 @@ TABLE_REGISTER = ['int XXX_register(lua_State* __ls) {\n', 'lua_newtable(__ls);\n', 'luaL_setfuncs(__ls, XXX_methods, 0);\n', 'luaL_newmetatable(__ls, "XXX");\n', + 'luaL_setfuncs(__ls, XXX_methods, 0);\n', 'luaL_setfuncs(__ls, XXX_meta, 0);\n', 'lua_pushliteral(__ls, "__index");\n', 'lua_pushvalue(__ls, -3);\n', -- cgit v1.2.3