diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp index b1ed94312a..7adf6a1d97 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -1856,8 +1856,8 @@ static bool js_cocos2dx_Component_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Component *nobj = new (std::nothrow) cocos2d::Component(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Component"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Component"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5058,8 +5058,8 @@ static bool js_cocos2dx_Node_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Node *nobj = new (std::nothrow) cocos2d::Node(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Node"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Node"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5377,8 +5377,8 @@ static bool js_cocos2dx_Scene_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Scene *nobj = new (std::nothrow) cocos2d::Scene(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Scene"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Scene"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -13025,8 +13025,8 @@ static bool js_cocos2dx_Follow_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Follow *nobj = new (std::nothrow) cocos2d::Follow(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Follow"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Follow"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -15226,8 +15226,8 @@ static bool js_cocos2dx_SpriteFrame_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::SpriteFrame *nobj = new (std::nothrow) cocos2d::SpriteFrame(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::SpriteFrame"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::SpriteFrame"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -15557,8 +15557,8 @@ static bool js_cocos2dx_AnimationFrame_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::AnimationFrame *nobj = new (std::nothrow) cocos2d::AnimationFrame(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::AnimationFrame"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::AnimationFrame"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -16136,8 +16136,8 @@ static bool js_cocos2dx_Animation_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Animation *nobj = new (std::nothrow) cocos2d::Animation(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Animation"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Animation"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -16426,8 +16426,8 @@ static bool js_cocos2dx_Sequence_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Sequence *nobj = new (std::nothrow) cocos2d::Sequence(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Sequence"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Sequence"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -16619,8 +16619,8 @@ static bool js_cocos2dx_Repeat_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Repeat *nobj = new (std::nothrow) cocos2d::Repeat(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Repeat"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Repeat"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -16812,8 +16812,8 @@ static bool js_cocos2dx_RepeatForever_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::RepeatForever *nobj = new (std::nothrow) cocos2d::RepeatForever(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::RepeatForever"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::RepeatForever"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -16960,8 +16960,8 @@ static bool js_cocos2dx_Spawn_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Spawn *nobj = new (std::nothrow) cocos2d::Spawn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Spawn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Spawn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17119,8 +17119,8 @@ static bool js_cocos2dx_RotateTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::RotateTo *nobj = new (std::nothrow) cocos2d::RotateTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::RotateTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::RotateTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17304,8 +17304,8 @@ static bool js_cocos2dx_RotateBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::RotateBy *nobj = new (std::nothrow) cocos2d::RotateBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::RotateBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::RotateBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17433,8 +17433,8 @@ static bool js_cocos2dx_MoveBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MoveBy *nobj = new (std::nothrow) cocos2d::MoveBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MoveBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MoveBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17562,8 +17562,8 @@ static bool js_cocos2dx_MoveTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MoveTo *nobj = new (std::nothrow) cocos2d::MoveTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MoveTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MoveTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17695,8 +17695,8 @@ static bool js_cocos2dx_SkewTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::SkewTo *nobj = new (std::nothrow) cocos2d::SkewTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::SkewTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::SkewTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17828,8 +17828,8 @@ static bool js_cocos2dx_SkewBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::SkewBy *nobj = new (std::nothrow) cocos2d::SkewBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::SkewBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::SkewBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17965,8 +17965,8 @@ static bool js_cocos2dx_JumpBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::JumpBy *nobj = new (std::nothrow) cocos2d::JumpBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::JumpBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::JumpBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18102,8 +18102,8 @@ static bool js_cocos2dx_JumpTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::JumpTo *nobj = new (std::nothrow) cocos2d::JumpTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::JumpTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::JumpTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18186,8 +18186,8 @@ static bool js_cocos2dx_BezierBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::BezierBy *nobj = new (std::nothrow) cocos2d::BezierBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::BezierBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::BezierBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18266,8 +18266,8 @@ static bool js_cocos2dx_BezierTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::BezierTo *nobj = new (std::nothrow) cocos2d::BezierTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::BezierTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::BezierTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18497,8 +18497,8 @@ static bool js_cocos2dx_ScaleTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ScaleTo *nobj = new (std::nothrow) cocos2d::ScaleTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ScaleTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ScaleTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18659,8 +18659,8 @@ static bool js_cocos2dx_ScaleBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ScaleBy *nobj = new (std::nothrow) cocos2d::ScaleBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ScaleBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ScaleBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18787,8 +18787,8 @@ static bool js_cocos2dx_Blink_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Blink *nobj = new (std::nothrow) cocos2d::Blink(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Blink"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Blink"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -18916,8 +18916,8 @@ static bool js_cocos2dx_FadeTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeTo *nobj = new (std::nothrow) cocos2d::FadeTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19047,8 +19047,8 @@ static bool js_cocos2dx_FadeIn_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeIn *nobj = new (std::nothrow) cocos2d::FadeIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19178,8 +19178,8 @@ static bool js_cocos2dx_FadeOut_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeOut *nobj = new (std::nothrow) cocos2d::FadeOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19344,8 +19344,8 @@ static bool js_cocos2dx_TintTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TintTo *nobj = new (std::nothrow) cocos2d::TintTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TintTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TintTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19481,8 +19481,8 @@ static bool js_cocos2dx_TintBy_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TintBy *nobj = new (std::nothrow) cocos2d::TintBy(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TintBy"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TintBy"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19584,8 +19584,8 @@ static bool js_cocos2dx_DelayTime_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::DelayTime *nobj = new (std::nothrow) cocos2d::DelayTime(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::DelayTime"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::DelayTime"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19724,8 +19724,8 @@ static bool js_cocos2dx_ReverseTime_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ReverseTime *nobj = new (std::nothrow) cocos2d::ReverseTime(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ReverseTime"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ReverseTime"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19952,8 +19952,8 @@ static bool js_cocos2dx_Animate_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Animate *nobj = new (std::nothrow) cocos2d::Animate(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Animate"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Animate"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -20185,8 +20185,8 @@ static bool js_cocos2dx_TargetedAction_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TargetedAction *nobj = new (std::nothrow) cocos2d::TargetedAction(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TargetedAction"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TargetedAction"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -20368,8 +20368,8 @@ static bool js_cocos2dx_ActionFloat_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ActionFloat *nobj = new (std::nothrow) cocos2d::ActionFloat(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ActionFloat"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ActionFloat"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -20589,8 +20589,8 @@ static bool js_cocos2dx_ActionCamera_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ActionCamera *nobj = new (std::nothrow) cocos2d::ActionCamera(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ActionCamera"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ActionCamera"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -20740,8 +20740,8 @@ static bool js_cocos2dx_OrbitCamera_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::OrbitCamera *nobj = new (std::nothrow) cocos2d::OrbitCamera(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::OrbitCamera"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::OrbitCamera"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -21376,8 +21376,8 @@ static bool js_cocos2dx_EaseIn_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseIn *nobj = new (std::nothrow) cocos2d::EaseIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -21488,8 +21488,8 @@ static bool js_cocos2dx_EaseOut_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseOut *nobj = new (std::nothrow) cocos2d::EaseOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -21600,8 +21600,8 @@ static bool js_cocos2dx_EaseInOut_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseInOut *nobj = new (std::nothrow) cocos2d::EaseInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -21710,8 +21710,8 @@ static bool js_cocos2dx_EaseExponentialIn_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseExponentialIn *nobj = new (std::nothrow) cocos2d::EaseExponentialIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseExponentialIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseExponentialIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -21820,8 +21820,8 @@ static bool js_cocos2dx_EaseExponentialOut_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseExponentialOut *nobj = new (std::nothrow) cocos2d::EaseExponentialOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseExponentialOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseExponentialOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -21930,8 +21930,8 @@ static bool js_cocos2dx_EaseExponentialInOut_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseExponentialInOut *nobj = new (std::nothrow) cocos2d::EaseExponentialInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseExponentialInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseExponentialInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22040,8 +22040,8 @@ static bool js_cocos2dx_EaseSineIn_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseSineIn *nobj = new (std::nothrow) cocos2d::EaseSineIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseSineIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseSineIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22150,8 +22150,8 @@ static bool js_cocos2dx_EaseSineOut_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseSineOut *nobj = new (std::nothrow) cocos2d::EaseSineOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseSineOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseSineOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22260,8 +22260,8 @@ static bool js_cocos2dx_EaseSineInOut_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseSineInOut *nobj = new (std::nothrow) cocos2d::EaseSineInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseSineInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseSineInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22543,8 +22543,8 @@ static bool js_cocos2dx_EaseElasticIn_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseElasticIn *nobj = new (std::nothrow) cocos2d::EaseElasticIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseElasticIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseElasticIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22687,8 +22687,8 @@ static bool js_cocos2dx_EaseElasticOut_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseElasticOut *nobj = new (std::nothrow) cocos2d::EaseElasticOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseElasticOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseElasticOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22831,8 +22831,8 @@ static bool js_cocos2dx_EaseElasticInOut_ctor(JSContext *cx, uint32_t argc, jsva JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseElasticInOut *nobj = new (std::nothrow) cocos2d::EaseElasticInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseElasticInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseElasticInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -22989,8 +22989,8 @@ static bool js_cocos2dx_EaseBounceIn_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBounceIn *nobj = new (std::nothrow) cocos2d::EaseBounceIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBounceIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBounceIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23099,8 +23099,8 @@ static bool js_cocos2dx_EaseBounceOut_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBounceOut *nobj = new (std::nothrow) cocos2d::EaseBounceOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBounceOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBounceOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23209,8 +23209,8 @@ static bool js_cocos2dx_EaseBounceInOut_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBounceInOut *nobj = new (std::nothrow) cocos2d::EaseBounceInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBounceInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBounceInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23319,8 +23319,8 @@ static bool js_cocos2dx_EaseBackIn_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBackIn *nobj = new (std::nothrow) cocos2d::EaseBackIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBackIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBackIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23429,8 +23429,8 @@ static bool js_cocos2dx_EaseBackOut_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBackOut *nobj = new (std::nothrow) cocos2d::EaseBackOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBackOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBackOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23539,8 +23539,8 @@ static bool js_cocos2dx_EaseBackInOut_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBackInOut *nobj = new (std::nothrow) cocos2d::EaseBackInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBackInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBackInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23675,8 +23675,8 @@ static bool js_cocos2dx_EaseBezierAction_ctor(JSContext *cx, uint32_t argc, jsva JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseBezierAction *nobj = new (std::nothrow) cocos2d::EaseBezierAction(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseBezierAction"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseBezierAction"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23786,8 +23786,8 @@ static bool js_cocos2dx_EaseQuadraticActionIn_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuadraticActionIn *nobj = new (std::nothrow) cocos2d::EaseQuadraticActionIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuadraticActionIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuadraticActionIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -23896,8 +23896,8 @@ static bool js_cocos2dx_EaseQuadraticActionOut_ctor(JSContext *cx, uint32_t argc JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuadraticActionOut *nobj = new (std::nothrow) cocos2d::EaseQuadraticActionOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuadraticActionOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuadraticActionOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24006,8 +24006,8 @@ static bool js_cocos2dx_EaseQuadraticActionInOut_ctor(JSContext *cx, uint32_t ar JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuadraticActionInOut *nobj = new (std::nothrow) cocos2d::EaseQuadraticActionInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuadraticActionInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuadraticActionInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24116,8 +24116,8 @@ static bool js_cocos2dx_EaseQuarticActionIn_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuarticActionIn *nobj = new (std::nothrow) cocos2d::EaseQuarticActionIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuarticActionIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuarticActionIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24226,8 +24226,8 @@ static bool js_cocos2dx_EaseQuarticActionOut_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuarticActionOut *nobj = new (std::nothrow) cocos2d::EaseQuarticActionOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuarticActionOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuarticActionOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24336,8 +24336,8 @@ static bool js_cocos2dx_EaseQuarticActionInOut_ctor(JSContext *cx, uint32_t argc JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuarticActionInOut *nobj = new (std::nothrow) cocos2d::EaseQuarticActionInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuarticActionInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuarticActionInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24446,8 +24446,8 @@ static bool js_cocos2dx_EaseQuinticActionIn_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuinticActionIn *nobj = new (std::nothrow) cocos2d::EaseQuinticActionIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuinticActionIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuinticActionIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24556,8 +24556,8 @@ static bool js_cocos2dx_EaseQuinticActionOut_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuinticActionOut *nobj = new (std::nothrow) cocos2d::EaseQuinticActionOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuinticActionOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuinticActionOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24666,8 +24666,8 @@ static bool js_cocos2dx_EaseQuinticActionInOut_ctor(JSContext *cx, uint32_t argc JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseQuinticActionInOut *nobj = new (std::nothrow) cocos2d::EaseQuinticActionInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseQuinticActionInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseQuinticActionInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24776,8 +24776,8 @@ static bool js_cocos2dx_EaseCircleActionIn_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseCircleActionIn *nobj = new (std::nothrow) cocos2d::EaseCircleActionIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseCircleActionIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseCircleActionIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24886,8 +24886,8 @@ static bool js_cocos2dx_EaseCircleActionOut_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseCircleActionOut *nobj = new (std::nothrow) cocos2d::EaseCircleActionOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseCircleActionOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseCircleActionOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -24996,8 +24996,8 @@ static bool js_cocos2dx_EaseCircleActionInOut_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseCircleActionInOut *nobj = new (std::nothrow) cocos2d::EaseCircleActionInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseCircleActionInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseCircleActionInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -25106,8 +25106,8 @@ static bool js_cocos2dx_EaseCubicActionIn_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseCubicActionIn *nobj = new (std::nothrow) cocos2d::EaseCubicActionIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseCubicActionIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseCubicActionIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -25216,8 +25216,8 @@ static bool js_cocos2dx_EaseCubicActionOut_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseCubicActionOut *nobj = new (std::nothrow) cocos2d::EaseCubicActionOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseCubicActionOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseCubicActionOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -25326,8 +25326,8 @@ static bool js_cocos2dx_EaseCubicActionInOut_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::EaseCubicActionInOut *nobj = new (std::nothrow) cocos2d::EaseCubicActionInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::EaseCubicActionInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::EaseCubicActionInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -25472,8 +25472,8 @@ static bool js_cocos2dx_Show_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Show *nobj = new (std::nothrow) cocos2d::Show(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Show"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Show"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -25570,8 +25570,8 @@ static bool js_cocos2dx_Hide_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Hide *nobj = new (std::nothrow) cocos2d::Hide(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Hide"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Hide"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -25893,8 +25893,8 @@ static bool js_cocos2dx_FlipX_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FlipX *nobj = new (std::nothrow) cocos2d::FlipX(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FlipX"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FlipX"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -26018,8 +26018,8 @@ static bool js_cocos2dx_FlipY_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FlipY *nobj = new (std::nothrow) cocos2d::FlipY(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FlipY"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FlipY"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -26143,8 +26143,8 @@ static bool js_cocos2dx_Place_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Place *nobj = new (std::nothrow) cocos2d::Place(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Place"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Place"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -26243,8 +26243,8 @@ static bool js_cocos2dx_CallFunc_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::CallFunc *nobj = new (std::nothrow) cocos2d::CallFunc(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::CallFunc"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::CallFunc"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -26324,8 +26324,8 @@ static bool js_cocos2dx_CallFuncN_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::CallFuncN *nobj = new (std::nothrow) cocos2d::CallFuncN(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::CallFuncN"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::CallFuncN"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -27072,8 +27072,8 @@ static bool js_cocos2dx_FlipX3D_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FlipX3D *nobj = new (std::nothrow) cocos2d::FlipX3D(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FlipX3D"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FlipX3D"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -27176,8 +27176,8 @@ static bool js_cocos2dx_FlipY3D_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FlipY3D *nobj = new (std::nothrow) cocos2d::FlipY3D(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FlipY3D"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FlipY3D"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -28888,8 +28888,8 @@ static bool js_cocos2dx_ActionManager_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ActionManager *nobj = new (std::nothrow) cocos2d::ActionManager(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ActionManager"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ActionManager"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -29096,8 +29096,8 @@ static bool js_cocos2dx_ProgressTo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ProgressTo *nobj = new (std::nothrow) cocos2d::ProgressTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ProgressTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ProgressTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -29229,8 +29229,8 @@ static bool js_cocos2dx_ProgressFromTo_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ProgressFromTo *nobj = new (std::nothrow) cocos2d::ProgressFromTo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ProgressFromTo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ProgressFromTo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -29802,8 +29802,8 @@ static bool js_cocos2dx_FadeOutTRTiles_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeOutTRTiles *nobj = new (std::nothrow) cocos2d::FadeOutTRTiles(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeOutTRTiles"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeOutTRTiles"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -29910,8 +29910,8 @@ static bool js_cocos2dx_FadeOutBLTiles_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeOutBLTiles *nobj = new (std::nothrow) cocos2d::FadeOutBLTiles(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeOutBLTiles"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeOutBLTiles"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -30014,8 +30014,8 @@ static bool js_cocos2dx_FadeOutUpTiles_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeOutUpTiles *nobj = new (std::nothrow) cocos2d::FadeOutUpTiles(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeOutUpTiles"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeOutUpTiles"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -30118,8 +30118,8 @@ static bool js_cocos2dx_FadeOutDownTiles_ctor(JSContext *cx, uint32_t argc, jsva JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::FadeOutDownTiles *nobj = new (std::nothrow) cocos2d::FadeOutDownTiles(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::FadeOutDownTiles"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::FadeOutDownTiles"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -30718,8 +30718,8 @@ static bool js_cocos2dx_JumpTiles3D_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::JumpTiles3D *nobj = new (std::nothrow) cocos2d::JumpTiles3D(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::JumpTiles3D"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::JumpTiles3D"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -32515,8 +32515,8 @@ static bool js_cocos2dx_DrawNode_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::DrawNode *nobj = new (std::nothrow) cocos2d::DrawNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::DrawNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::DrawNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -34517,8 +34517,8 @@ static bool js_cocos2dx_Label_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Label *nobj = new (std::nothrow) cocos2d::Label(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Label"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Label"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -34692,8 +34692,8 @@ static bool js_cocos2dx_LabelTTF_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::LabelTTF *nobj = new (std::nothrow) cocos2d::LabelTTF(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::LabelTTF"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::LabelTTF"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -34788,8 +34788,8 @@ static bool js_cocos2dx_Layer_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Layer *nobj = new (std::nothrow) cocos2d::Layer(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Layer"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Layer"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -35080,8 +35080,8 @@ static bool js_cocos2dx_LayerColor_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::LayerColor *nobj = new (std::nothrow) cocos2d::LayerColor(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::LayerColor"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::LayerColor"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -35512,8 +35512,8 @@ static bool js_cocos2dx_LayerGradient_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::LayerGradient *nobj = new (std::nothrow) cocos2d::LayerGradient(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::LayerGradient"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::LayerGradient"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -35698,8 +35698,8 @@ static bool js_cocos2dx_LayerMultiplex_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::LayerMultiplex *nobj = new (std::nothrow) cocos2d::LayerMultiplex(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::LayerMultiplex"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::LayerMultiplex"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -35998,8 +35998,8 @@ static bool js_cocos2dx_MenuItem_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItem *nobj = new (std::nothrow) cocos2d::MenuItem(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItem"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItem"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -36271,8 +36271,8 @@ static bool js_cocos2dx_MenuItemLabel_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItemLabel *nobj = new (std::nothrow) cocos2d::MenuItemLabel(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItemLabel"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItemLabel"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -36416,8 +36416,8 @@ static bool js_cocos2dx_MenuItemAtlasFont_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItemAtlasFont *nobj = new (std::nothrow) cocos2d::MenuItemAtlasFont(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItemAtlasFont"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItemAtlasFont"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -36685,8 +36685,8 @@ static bool js_cocos2dx_MenuItemFont_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItemFont *nobj = new (std::nothrow) cocos2d::MenuItemFont(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItemFont"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItemFont"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -37056,8 +37056,8 @@ static bool js_cocos2dx_MenuItemSprite_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItemSprite *nobj = new (std::nothrow) cocos2d::MenuItemSprite(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItemSprite"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItemSprite"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -37302,8 +37302,8 @@ static bool js_cocos2dx_MenuItemImage_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItemImage *nobj = new (std::nothrow) cocos2d::MenuItemImage(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItemImage"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItemImage"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -37525,8 +37525,8 @@ static bool js_cocos2dx_MenuItemToggle_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MenuItemToggle *nobj = new (std::nothrow) cocos2d::MenuItemToggle(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MenuItemToggle"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MenuItemToggle"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -37743,8 +37743,8 @@ static bool js_cocos2dx_Menu_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Menu *nobj = new (std::nothrow) cocos2d::Menu(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Menu"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Menu"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -38291,8 +38291,8 @@ static bool js_cocos2dx_MotionStreak_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::MotionStreak *nobj = new (std::nothrow) cocos2d::MotionStreak(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::MotionStreak"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::MotionStreak"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -38952,8 +38952,8 @@ static bool js_cocos2dx_ParticleBatchNode_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ParticleBatchNode *nobj = new (std::nothrow) cocos2d::ParticleBatchNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ParticleBatchNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ParticleBatchNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -41253,8 +41253,8 @@ static bool js_cocos2dx_ParticleSystem_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ParticleSystem *nobj = new (std::nothrow) cocos2d::ParticleSystem(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ParticleSystem"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ParticleSystem"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -43527,8 +43527,8 @@ static bool js_cocos2dx_ProgressTimer_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ProgressTimer *nobj = new (std::nothrow) cocos2d::ProgressTimer(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ProgressTimer"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ProgressTimer"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -44884,8 +44884,8 @@ static bool js_cocos2dx_Sprite_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Sprite *nobj = new (std::nothrow) cocos2d::Sprite(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Sprite"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Sprite"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -45636,8 +45636,8 @@ static bool js_cocos2dx_RenderTexture_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::RenderTexture *nobj = new (std::nothrow) cocos2d::RenderTexture(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::RenderTexture"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::RenderTexture"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -45954,8 +45954,8 @@ static bool js_cocos2dx_TransitionScene_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionScene *nobj = new (std::nothrow) cocos2d::TransitionScene(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionScene"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionScene"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46107,8 +46107,8 @@ static bool js_cocos2dx_TransitionSceneOriented_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSceneOriented *nobj = new (std::nothrow) cocos2d::TransitionSceneOriented(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSceneOriented"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSceneOriented"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46220,8 +46220,8 @@ static bool js_cocos2dx_TransitionRotoZoom_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionRotoZoom *nobj = new (std::nothrow) cocos2d::TransitionRotoZoom(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionRotoZoom"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionRotoZoom"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46332,8 +46332,8 @@ static bool js_cocos2dx_TransitionJumpZoom_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionJumpZoom *nobj = new (std::nothrow) cocos2d::TransitionJumpZoom(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionJumpZoom"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionJumpZoom"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46500,8 +46500,8 @@ static bool js_cocos2dx_TransitionMoveInL_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionMoveInL *nobj = new (std::nothrow) cocos2d::TransitionMoveInL(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionMoveInL"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionMoveInL"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46614,8 +46614,8 @@ static bool js_cocos2dx_TransitionMoveInR_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionMoveInR *nobj = new (std::nothrow) cocos2d::TransitionMoveInR(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionMoveInR"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionMoveInR"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46726,8 +46726,8 @@ static bool js_cocos2dx_TransitionMoveInT_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionMoveInT *nobj = new (std::nothrow) cocos2d::TransitionMoveInT(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionMoveInT"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionMoveInT"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -46838,8 +46838,8 @@ static bool js_cocos2dx_TransitionMoveInB_ctor(JSContext *cx, uint32_t argc, jsv JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionMoveInB *nobj = new (std::nothrow) cocos2d::TransitionMoveInB(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionMoveInB"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionMoveInB"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47006,8 +47006,8 @@ static bool js_cocos2dx_TransitionSlideInL_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSlideInL *nobj = new (std::nothrow) cocos2d::TransitionSlideInL(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSlideInL"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSlideInL"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47120,8 +47120,8 @@ static bool js_cocos2dx_TransitionSlideInR_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSlideInR *nobj = new (std::nothrow) cocos2d::TransitionSlideInR(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSlideInR"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSlideInR"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47232,8 +47232,8 @@ static bool js_cocos2dx_TransitionSlideInB_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSlideInB *nobj = new (std::nothrow) cocos2d::TransitionSlideInB(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSlideInB"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSlideInB"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47344,8 +47344,8 @@ static bool js_cocos2dx_TransitionSlideInT_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSlideInT *nobj = new (std::nothrow) cocos2d::TransitionSlideInT(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSlideInT"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSlideInT"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47490,8 +47490,8 @@ static bool js_cocos2dx_TransitionShrinkGrow_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionShrinkGrow *nobj = new (std::nothrow) cocos2d::TransitionShrinkGrow(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionShrinkGrow"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionShrinkGrow"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47641,8 +47641,8 @@ static bool js_cocos2dx_TransitionFlipX_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFlipX *nobj = new (std::nothrow) cocos2d::TransitionFlipX(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFlipX"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFlipX"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47791,8 +47791,8 @@ static bool js_cocos2dx_TransitionFlipY_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFlipY *nobj = new (std::nothrow) cocos2d::TransitionFlipY(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFlipY"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFlipY"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -47941,8 +47941,8 @@ static bool js_cocos2dx_TransitionFlipAngular_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFlipAngular *nobj = new (std::nothrow) cocos2d::TransitionFlipAngular(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFlipAngular"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFlipAngular"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -48091,8 +48091,8 @@ static bool js_cocos2dx_TransitionZoomFlipX_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionZoomFlipX *nobj = new (std::nothrow) cocos2d::TransitionZoomFlipX(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionZoomFlipX"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionZoomFlipX"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -48241,8 +48241,8 @@ static bool js_cocos2dx_TransitionZoomFlipY_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionZoomFlipY *nobj = new (std::nothrow) cocos2d::TransitionZoomFlipY(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionZoomFlipY"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionZoomFlipY"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -48391,8 +48391,8 @@ static bool js_cocos2dx_TransitionZoomFlipAngular_ctor(JSContext *cx, uint32_t a JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionZoomFlipAngular *nobj = new (std::nothrow) cocos2d::TransitionZoomFlipAngular(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionZoomFlipAngular"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionZoomFlipAngular"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -48607,8 +48607,8 @@ static bool js_cocos2dx_TransitionFade_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFade *nobj = new (std::nothrow) cocos2d::TransitionFade(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFade"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFade"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -48720,8 +48720,8 @@ static bool js_cocos2dx_TransitionCrossFade_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionCrossFade *nobj = new (std::nothrow) cocos2d::TransitionCrossFade(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionCrossFade"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionCrossFade"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -48866,8 +48866,8 @@ static bool js_cocos2dx_TransitionTurnOffTiles_ctor(JSContext *cx, uint32_t argc JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionTurnOffTiles *nobj = new (std::nothrow) cocos2d::TransitionTurnOffTiles(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionTurnOffTiles"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionTurnOffTiles"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49035,8 +49035,8 @@ static bool js_cocos2dx_TransitionSplitCols_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSplitCols *nobj = new (std::nothrow) cocos2d::TransitionSplitCols(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSplitCols"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSplitCols"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49149,8 +49149,8 @@ static bool js_cocos2dx_TransitionSplitRows_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionSplitRows *nobj = new (std::nothrow) cocos2d::TransitionSplitRows(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionSplitRows"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionSplitRows"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49321,8 +49321,8 @@ static bool js_cocos2dx_TransitionFadeTR_ctor(JSContext *cx, uint32_t argc, jsva JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFadeTR *nobj = new (std::nothrow) cocos2d::TransitionFadeTR(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFadeTR"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFadeTR"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49435,8 +49435,8 @@ static bool js_cocos2dx_TransitionFadeBL_ctor(JSContext *cx, uint32_t argc, jsva JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFadeBL *nobj = new (std::nothrow) cocos2d::TransitionFadeBL(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFadeBL"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFadeBL"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49547,8 +49547,8 @@ static bool js_cocos2dx_TransitionFadeUp_ctor(JSContext *cx, uint32_t argc, jsva JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFadeUp *nobj = new (std::nothrow) cocos2d::TransitionFadeUp(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFadeUp"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFadeUp"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49659,8 +49659,8 @@ static bool js_cocos2dx_TransitionFadeDown_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionFadeDown *nobj = new (std::nothrow) cocos2d::TransitionFadeDown(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionFadeDown"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionFadeDown"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49833,8 +49833,8 @@ static bool js_cocos2dx_TransitionPageTurn_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionPageTurn *nobj = new (std::nothrow) cocos2d::TransitionPageTurn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionPageTurn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionPageTurn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -49947,8 +49947,8 @@ static bool js_cocos2dx_TransitionProgress_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgress *nobj = new (std::nothrow) cocos2d::TransitionProgress(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgress"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgress"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -50059,8 +50059,8 @@ static bool js_cocos2dx_TransitionProgressRadialCCW_ctor(JSContext *cx, uint32_t JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgressRadialCCW *nobj = new (std::nothrow) cocos2d::TransitionProgressRadialCCW(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgressRadialCCW"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgressRadialCCW"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -50171,8 +50171,8 @@ static bool js_cocos2dx_TransitionProgressRadialCW_ctor(JSContext *cx, uint32_t JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgressRadialCW *nobj = new (std::nothrow) cocos2d::TransitionProgressRadialCW(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgressRadialCW"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgressRadialCW"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -50283,8 +50283,8 @@ static bool js_cocos2dx_TransitionProgressHorizontal_ctor(JSContext *cx, uint32_ JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgressHorizontal *nobj = new (std::nothrow) cocos2d::TransitionProgressHorizontal(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgressHorizontal"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgressHorizontal"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -50395,8 +50395,8 @@ static bool js_cocos2dx_TransitionProgressVertical_ctor(JSContext *cx, uint32_t JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgressVertical *nobj = new (std::nothrow) cocos2d::TransitionProgressVertical(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgressVertical"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgressVertical"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -50507,8 +50507,8 @@ static bool js_cocos2dx_TransitionProgressInOut_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgressInOut *nobj = new (std::nothrow) cocos2d::TransitionProgressInOut(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgressInOut"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgressInOut"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -50619,8 +50619,8 @@ static bool js_cocos2dx_TransitionProgressOutIn_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TransitionProgressOutIn *nobj = new (std::nothrow) cocos2d::TransitionProgressOutIn(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TransitionProgressOutIn"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TransitionProgressOutIn"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -51447,8 +51447,8 @@ static bool js_cocos2dx_Grid3D_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::Grid3D *nobj = new (std::nothrow) cocos2d::Grid3D(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::Grid3D"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::Grid3D"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -51644,8 +51644,8 @@ static bool js_cocos2dx_TiledGrid3D_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TiledGrid3D *nobj = new (std::nothrow) cocos2d::TiledGrid3D(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TiledGrid3D"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TiledGrid3D"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -52414,8 +52414,8 @@ static bool js_cocos2dx_GLProgram_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::GLProgram *nobj = new (std::nothrow) cocos2d::GLProgram(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::GLProgram"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::GLProgram"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -54617,8 +54617,8 @@ static bool js_cocos2dx_AnimationCache_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::AnimationCache *nobj = new (std::nothrow) cocos2d::AnimationCache(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::AnimationCache"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::AnimationCache"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -55312,8 +55312,8 @@ static bool js_cocos2dx_SpriteBatchNode_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::SpriteBatchNode *nobj = new (std::nothrow) cocos2d::SpriteBatchNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::SpriteBatchNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::SpriteBatchNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -56277,8 +56277,8 @@ static bool js_cocos2dx_TextFieldTTF_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TextFieldTTF *nobj = new (std::nothrow) cocos2d::TextFieldTTF(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TextFieldTTF"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TextFieldTTF"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -56446,8 +56446,8 @@ static bool js_cocos2dx_ParallaxNode_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ParallaxNode *nobj = new (std::nothrow) cocos2d::ParallaxNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ParallaxNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ParallaxNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -58522,8 +58522,8 @@ static bool js_cocos2dx_TMXMapInfo_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TMXMapInfo *nobj = new (std::nothrow) cocos2d::TMXMapInfo(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TMXMapInfo"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TMXMapInfo"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -59218,8 +59218,8 @@ static bool js_cocos2dx_TMXLayer_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TMXLayer *nobj = new (std::nothrow) cocos2d::TMXLayer(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TMXLayer"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TMXLayer"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -59741,8 +59741,8 @@ static bool js_cocos2dx_TMXTiledMap_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TMXTiledMap *nobj = new (std::nothrow) cocos2d::TMXTiledMap(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TMXTiledMap"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TMXTiledMap"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -59955,8 +59955,8 @@ static bool js_cocos2dx_TileMapAtlas_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::TileMapAtlas *nobj = new (std::nothrow) cocos2d::TileMapAtlas(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::TileMapAtlas"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::TileMapAtlas"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.cpp index d0a74999cb..950eaf3ac7 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.cpp @@ -2246,8 +2246,8 @@ static bool js_cocos2dx_extension_ControlButton_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ControlButton *nobj = new (std::nothrow) cocos2d::extension::ControlButton(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ControlButton"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ControlButton"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -3202,8 +3202,8 @@ static bool js_cocos2dx_extension_ControlColourPicker_ctor(JSContext *cx, uint32 JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ControlColourPicker *nobj = new (std::nothrow) cocos2d::extension::ControlColourPicker(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ControlColourPicker"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ControlColourPicker"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -3730,8 +3730,8 @@ static bool js_cocos2dx_extension_ControlPotentiometer_ctor(JSContext *cx, uint3 JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ControlPotentiometer *nobj = new (std::nothrow) cocos2d::extension::ControlPotentiometer(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ControlPotentiometer"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ControlPotentiometer"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -4527,8 +4527,8 @@ static bool js_cocos2dx_extension_ControlSlider_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ControlSlider *nobj = new (std::nothrow) cocos2d::extension::ControlSlider(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ControlSlider"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ControlSlider"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5117,8 +5117,8 @@ static bool js_cocos2dx_extension_ControlStepper_ctor(JSContext *cx, uint32_t ar JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ControlStepper *nobj = new (std::nothrow) cocos2d::extension::ControlStepper(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ControlStepper"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ControlStepper"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5614,8 +5614,8 @@ static bool js_cocos2dx_extension_ControlSwitch_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ControlSwitch *nobj = new (std::nothrow) cocos2d::extension::ControlSwitch(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ControlSwitch"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ControlSwitch"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -6442,8 +6442,8 @@ static bool js_cocos2dx_extension_ScrollView_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::ScrollView *nobj = new (std::nothrow) cocos2d::extension::ScrollView(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::ScrollView"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::ScrollView"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -6626,8 +6626,8 @@ static bool js_cocos2dx_extension_TableViewCell_ctor(JSContext *cx, uint32_t arg JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::TableViewCell *nobj = new (std::nothrow) cocos2d::extension::TableViewCell(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::TableViewCell"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::TableViewCell"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -6978,8 +6978,8 @@ static bool js_cocos2dx_extension_TableView_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::extension::TableView *nobj = new (std::nothrow) cocos2d::extension::TableView(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::extension::TableView"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::extension::TableView"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_studio_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_studio_auto.cpp index 58b2791907..bda4bfd282 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_studio_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_studio_auto.cpp @@ -5846,8 +5846,8 @@ static bool js_cocos2dx_studio_Armature_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocostudio::Armature *nobj = new (std::nothrow) cocostudio::Armature(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocostudio::Armature"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocostudio::Armature"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -7474,8 +7474,8 @@ static bool js_cocos2dx_studio_ComController_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocostudio::ComController *nobj = new (std::nothrow) cocostudio::ComController(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocostudio::ComController"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocostudio::ComController"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -12053,8 +12053,8 @@ static bool js_cocos2dx_studio_BoneNode_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocostudio::timeline::BoneNode *nobj = new (std::nothrow) cocostudio::timeline::BoneNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocostudio::timeline::BoneNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocostudio::timeline::BoneNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -12273,8 +12273,8 @@ static bool js_cocos2dx_studio_SkeletonNode_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocostudio::timeline::SkeletonNode *nobj = new (std::nothrow) cocostudio::timeline::SkeletonNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocostudio::timeline::SkeletonNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocostudio::timeline::SkeletonNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp index 8eed8227a0..e860e3ede4 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp @@ -2054,8 +2054,8 @@ static bool js_cocos2dx_ui_Widget_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::Widget *nobj = new (std::nothrow) cocos2d::ui::Widget(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::Widget"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::Widget"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -2887,8 +2887,8 @@ static bool js_cocos2dx_ui_Layout_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::Layout *nobj = new (std::nothrow) cocos2d::ui::Layout(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::Layout"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::Layout"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -3943,8 +3943,8 @@ static bool js_cocos2dx_ui_Button_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::Button *nobj = new (std::nothrow) cocos2d::ui::Button(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::Button"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::Button"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -4827,8 +4827,8 @@ static bool js_cocos2dx_ui_CheckBox_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::CheckBox *nobj = new (std::nothrow) cocos2d::ui::CheckBox(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::CheckBox"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::CheckBox"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5084,8 +5084,8 @@ static bool js_cocos2dx_ui_RadioButton_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RadioButton *nobj = new (std::nothrow) cocos2d::ui::RadioButton(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RadioButton"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RadioButton"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5493,8 +5493,8 @@ static bool js_cocos2dx_ui_RadioButtonGroup_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RadioButtonGroup *nobj = new (std::nothrow) cocos2d::ui::RadioButtonGroup(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RadioButtonGroup"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RadioButtonGroup"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -5823,8 +5823,8 @@ static bool js_cocos2dx_ui_ImageView_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::ImageView *nobj = new (std::nothrow) cocos2d::ui::ImageView(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::ImageView"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::ImageView"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -6598,8 +6598,8 @@ static bool js_cocos2dx_ui_Text_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::Text *nobj = new (std::nothrow) cocos2d::ui::Text(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::Text"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::Text"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -6880,8 +6880,8 @@ static bool js_cocos2dx_ui_TextAtlas_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::TextAtlas *nobj = new (std::nothrow) cocos2d::ui::TextAtlas(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::TextAtlas"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::TextAtlas"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -7271,8 +7271,8 @@ static bool js_cocos2dx_ui_LoadingBar_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::LoadingBar *nobj = new (std::nothrow) cocos2d::ui::LoadingBar(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::LoadingBar"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::LoadingBar"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -8452,8 +8452,8 @@ static bool js_cocos2dx_ui_ScrollView_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::ScrollView *nobj = new (std::nothrow) cocos2d::ui::ScrollView(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::ScrollView"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::ScrollView"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -9367,8 +9367,8 @@ static bool js_cocos2dx_ui_ListView_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::ListView *nobj = new (std::nothrow) cocos2d::ui::ListView(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::ListView"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::ListView"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -10138,8 +10138,8 @@ static bool js_cocos2dx_ui_Slider_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::Slider *nobj = new (std::nothrow) cocos2d::ui::Slider(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::Slider"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::Slider"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -11825,8 +11825,8 @@ static bool js_cocos2dx_ui_TextField_ctor(JSContext *cx, uint32_t argc, jsval *v JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::TextField *nobj = new (std::nothrow) cocos2d::ui::TextField(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::TextField"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::TextField"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -12104,8 +12104,8 @@ static bool js_cocos2dx_ui_TextBMFont_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::TextBMFont *nobj = new (std::nothrow) cocos2d::ui::TextBMFont(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::TextBMFont"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::TextBMFont"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -12771,8 +12771,8 @@ static bool js_cocos2dx_ui_PageView_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::PageView *nobj = new (std::nothrow) cocos2d::ui::PageView(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::PageView"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::PageView"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -13213,8 +13213,8 @@ static bool js_cocos2dx_ui_RichElement_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RichElement *nobj = new (std::nothrow) cocos2d::ui::RichElement(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichElement"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RichElement"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -13784,8 +13784,8 @@ static bool js_cocos2dx_ui_RichElementText_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RichElementText *nobj = new (std::nothrow) cocos2d::ui::RichElementText(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichElementText"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RichElementText"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -14018,8 +14018,8 @@ static bool js_cocos2dx_ui_RichElementImage_ctor(JSContext *cx, uint32_t argc, j JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RichElementImage *nobj = new (std::nothrow) cocos2d::ui::RichElementImage(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichElementImage"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RichElementImage"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -14174,8 +14174,8 @@ static bool js_cocos2dx_ui_RichElementCustomNode_ctor(JSContext *cx, uint32_t ar JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RichElementCustomNode *nobj = new (std::nothrow) cocos2d::ui::RichElementCustomNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichElementCustomNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RichElementCustomNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -14281,8 +14281,8 @@ static bool js_cocos2dx_ui_RichElementNewLine_ctor(JSContext *cx, uint32_t argc, JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RichElementNewLine *nobj = new (std::nothrow) cocos2d::ui::RichElementNewLine(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichElementNewLine"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RichElementNewLine"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -15428,8 +15428,8 @@ static bool js_cocos2dx_ui_RichText_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RichText *nobj = new (std::nothrow) cocos2d::ui::RichText(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichText"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RichText"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -15616,8 +15616,8 @@ static bool js_cocos2dx_ui_HBox_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::HBox *nobj = new (std::nothrow) cocos2d::ui::HBox(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::HBox"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::HBox"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -15760,8 +15760,8 @@ static bool js_cocos2dx_ui_VBox_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::VBox *nobj = new (std::nothrow) cocos2d::ui::VBox(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::VBox"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::VBox"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -15904,8 +15904,8 @@ static bool js_cocos2dx_ui_RelativeBox_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::RelativeBox *nobj = new (std::nothrow) cocos2d::ui::RelativeBox(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RelativeBox"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::RelativeBox"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17185,8 +17185,8 @@ static bool js_cocos2dx_ui_Scale9Sprite_ctor(JSContext *cx, uint32_t argc, jsval JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::Scale9Sprite *nobj = new (std::nothrow) cocos2d::ui::Scale9Sprite(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::Scale9Sprite"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::Scale9Sprite"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -17943,8 +17943,8 @@ static bool js_cocos2dx_ui_EditBox_ctor(JSContext *cx, uint32_t argc, jsval *vp) JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::EditBox *nobj = new (std::nothrow) cocos2d::ui::EditBox(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::EditBox"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::EditBox"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -19021,8 +19021,8 @@ static bool js_cocos2dx_ui_LayoutComponent_ctor(JSContext *cx, uint32_t argc, js JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); cocos2d::ui::LayoutComponent *nobj = new (std::nothrow) cocos2d::ui::LayoutComponent(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::LayoutComponent"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::LayoutComponent"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -20316,8 +20316,8 @@ static bool js_cocos2dx_ui_ScrollViewBar_ctor(JSContext *cx, uint32_t argc, jsva ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1); JSB_PRECONDITION2(ok, cx, false, "js_cocos2d_ui_ScrollViewBar_ctor : Error processing arguments"); cocos2d::ui::ScrollViewBar *nobj = new (std::nothrow) cocos2d::ui::ScrollViewBar(arg0, arg1); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::ScrollViewBar"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "cocos2d::ui::ScrollViewBar"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); diff --git a/native/cocos/scripting/js-bindings/auto/jsb_creator_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_creator_auto.cpp index d243ad1edb..456357af23 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_creator_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_creator_auto.cpp @@ -775,8 +775,8 @@ static bool js_creator_Scale9SpriteV2_ctor(JSContext *cx, uint32_t argc, jsval * JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); creator::Scale9SpriteV2 *nobj = new (std::nothrow) creator::Scale9SpriteV2(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "creator::Scale9SpriteV2"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "creator::Scale9SpriteV2"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); @@ -1565,8 +1565,8 @@ static bool js_creator_GraphicsNode_ctor(JSContext *cx, uint32_t argc, jsval *vp JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); creator::GraphicsNode *nobj = new (std::nothrow) creator::GraphicsNode(); - auto newproxy = jsb_new_proxy(nobj, obj); - jsb_ref_init(cx, &newproxy->obj, nobj, "creator::GraphicsNode"); + js_proxy_t* p = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &p->obj, nobj, "creator::GraphicsNode"); bool isFound = false; if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args);