2020-07-20 18:46:15 +08:00
|
|
|
#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-07-20 18:46:15 +08:00
|
|
|
|
2020-10-08 22:32:07 +08:00
|
|
|
bool js_${generator.prefix}_${current_class.class_name}_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
2020-07-20 18:46:15 +08:00
|
|
|
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);
|