axmol/tools/bindings-generator/targets/lua/templates/layout_foot.c

26 lines
481 B
C
Raw Normal View History

2020-10-08 22:32:07 +08:00
TOLUA_API int register_all_${prefix}(lua_State* tolua_S)
{
tolua_open(tolua_S);
#if $target_ns
tolua_module(tolua_S,"${target_ns}",0);
tolua_beginmodule(tolua_S,"${target_ns}");
#else
tolua_module(tolua_S,nullptr,0);
tolua_beginmodule(tolua_S,nullptr);
#end if
#for jsclass in $sorted_classes
#if $in_listed_classes(jsclass)
lua_register_${prefix}_${jsclass}(tolua_S);
#end if
#end for
tolua_endmodule(tolua_S);
return 1;
}
#if $macro_judgement
\#endif
#end if