1
2
3
4
5
6
|
extern JSClass extern JSObject JSBool void js_cocos2dx_Sprite_finalize(JSContext void js_register_cocos2dx_Sprite(JSContext void register_all_cocos2dx(JSContext* |
1
2
3
4
5
6
7
8
9
|
jsb_cocos2d_Sprite_prototype cx, jsb_cocos2d_Node_prototype, jsb_cocos2d_Sprite_class, dummy_constructor<cocos2d::Sprite>, // properties, funcs, NULL, // st_funcs); |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
template < class T> static JSBool JS::RootedValue JSBool JSObject* isNewValid "initializing" , if (isNewValid) { TypeTest<T> js_type_class_t std::string auto typeMapIter CCASSERT(typeMapIter "Can't ); typeClass CCASSERT(typeClass, "The ); JSObject JS_SET_RVAL(cx, return JS_TRUE; } JS_ReportError(cx, "Don't ); return JS_FALSE; } |
1
2
3
4
5
6
7
8
9
10
11
12
|
template < typename DERIVED class TypeTest { public : static const char * { // // // return typeid ( } }; |