summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
95986f5)
Signed-off-by: Julien Danjou <julien@danjou.info>
%s_init();
/* create methods table, add it the the table of globals */
%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 */
methods = lua_gettop(L);
lua_newtable(L); /* for new members */