aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xluatablegen.py1
1 files changed, 1 insertions, 0 deletions
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',