axmol/tools/bindings-generator/targets/spidermonkey/templates/prelude.h

10 lines
570 B
C
Raw Normal View History

#set generator = $current_class.generator
2020-10-08 22:32:07 +08:00
extern JSClass *jsb_${current_class.underlined_class_name}_class;
extern JSObject *jsb_${current_class.underlined_class_name}_prototype;
2020-10-08 22:32:07 +08:00
bool js_${generator.prefix}_${current_class.class_name}_constructor(JSContext *cx, uint32_t argc, jsval *vp);
void js_${generator.prefix}_${current_class.class_name}_finalize(JSContext *cx, JSObject *obj);
2020-10-08 22:32:07 +08:00
void js_register_${generator.prefix}_${current_class.class_name}(JSContext *cx, JS::HandleObject global);
void register_all_${generator.prefix}(JSContext* cx, JS::HandleObject obj);