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

20 lines
517 B
C
Raw Normal View History

2020-10-08 22:32:07 +08:00
void register_all_${prefix}(JSContext* cx, JS::HandleObject obj) {
#if $target_ns
// Get the ns
JS::RootedObject ns(cx);
get_or_create_js_obj(cx, obj, "${target_ns}", &ns);
#else
// Get the global ns
JS::RootedObject ns(cx, ScriptingCore::getInstance()->getGlobalObject());
#end if
2020-10-08 22:32:07 +08:00
#for jsclass in $sorted_classes
#if $in_listed_classes(jsclass)
js_register_${prefix}_${jsclass}(cx, ns);
#end if
#end for
}
2020-10-08 22:32:07 +08:00
#if $macro_judgement
\#endif //$macro_judgement
#end if