CCLOG in finalize method rather than cocos2d::log.

This commit is contained in:
James Chen
2017-09-15 10:40:43 +08:00
parent f232ee61ad
commit ddc802d9f0
12 changed files with 296 additions and 241 deletions
@@ -693,7 +693,7 @@ extern se::Object* __jsb_b2Shape_proto;
static bool js_b2CircleShape_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2CircleShape)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2CircleShape)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -911,7 +911,7 @@ extern se::Object* __jsb_b2Shape_proto;
static bool js_b2EdgeShape_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2EdgeShape)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2EdgeShape)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -1179,7 +1179,7 @@ extern se::Object* __jsb_b2Shape_proto;
static bool js_b2ChainShape_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2ChainShape)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2ChainShape)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -1433,7 +1433,7 @@ extern se::Object* __jsb_b2Shape_proto;
static bool js_b2PolygonShape_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2PolygonShape)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2PolygonShape)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -2474,7 +2474,7 @@ SE_BIND_FUNC(js_box2dclasses_b2Body_GetPosition)
static bool js_b2Body_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2Body)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2Body)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2Body_finalize)
@@ -2968,7 +2968,7 @@ SE_BIND_FUNC(js_box2dclasses_b2Fixture_GetDensity)
static bool js_b2Fixture_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2Fixture)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2Fixture)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2Fixture_finalize)
@@ -3917,7 +3917,7 @@ SE_BIND_CTOR(js_box2dclasses_b2World_constructor, __jsb_b2World_class, js_b2Worl
static bool js_b2World_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2World)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2World)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -4385,7 +4385,7 @@ SE_BIND_FUNC(js_box2dclasses_b2Contact_ResetRestitution)
static bool js_b2Contact_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2Contact)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2Contact)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2Contact_finalize)
@@ -4663,7 +4663,7 @@ SE_BIND_FUNC(js_box2dclasses_b2Joint_IsActive)
static bool js_b2Joint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2Joint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2Joint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2Joint_finalize)
@@ -4943,7 +4943,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2DistanceJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2DistanceJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2DistanceJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2DistanceJoint_finalize)
@@ -5187,7 +5187,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2FrictionJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2FrictionJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2FrictionJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2FrictionJoint_finalize)
@@ -5392,7 +5392,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2GearJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2GearJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2GearJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2GearJoint_finalize)
@@ -5707,7 +5707,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2MotorJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2MotorJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2MotorJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2MotorJoint_finalize)
@@ -6010,7 +6010,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2MouseJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2MouseJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2MouseJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2MouseJoint_finalize)
@@ -6479,7 +6479,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2PrismaticJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2PrismaticJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2PrismaticJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2PrismaticJoint_finalize)
@@ -6768,7 +6768,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2PulleyJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2PulleyJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2PulleyJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2PulleyJoint_finalize)
@@ -7218,7 +7218,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2RevoluteJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2RevoluteJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2RevoluteJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2RevoluteJoint_finalize)
@@ -7452,7 +7452,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2RopeJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2RopeJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2RopeJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2RopeJoint_finalize)
@@ -7711,7 +7711,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2WeldJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2WeldJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2WeldJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2WeldJoint_finalize)
@@ -8140,7 +8140,7 @@ extern se::Object* __jsb_b2Joint_proto;
static bool js_b2WheelJoint_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (b2WheelJoint)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (b2WheelJoint)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_b2WheelJoint_finalize)
@@ -106,7 +106,7 @@ SE_BIND_CTOR(js_cocos2dx_audioengine_AudioProfile_constructor, __jsb_cocos2d_exp
static bool js_cocos2d_experimental_AudioProfile_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::experimental::AudioProfile)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::experimental::AudioProfile)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -284,6 +284,22 @@ static bool js_cocos2dx_audioengine_AudioEngine_getMaxAudioInstance(se::State& s
}
SE_BIND_FUNC(js_cocos2dx_audioengine_AudioEngine_getMaxAudioInstance)
static bool js_cocos2dx_audioengine_AudioEngine_isEnabled(se::State& s)
{
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 0) {
bool result = cocos2d::experimental::AudioEngine::isEnabled();
ok &= boolean_to_seval(result, &s.rval());
SE_PRECONDITION2(ok, false, "js_cocos2dx_audioengine_AudioEngine_isEnabled : Error processing arguments");
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
return false;
}
SE_BIND_FUNC(js_cocos2dx_audioengine_AudioEngine_isEnabled)
static bool js_cocos2dx_audioengine_AudioEngine_getCurrentTime(se::State& s)
{
const auto& args = s.args();
@@ -446,6 +462,23 @@ static bool js_cocos2dx_audioengine_AudioEngine_preload(se::State& s)
}
SE_BIND_FUNC(js_cocos2dx_audioengine_AudioEngine_preload)
static bool js_cocos2dx_audioengine_AudioEngine_setEnabled(se::State& s)
{
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 1) {
bool arg0;
ok &= seval_to_boolean(args[0], &arg0);
SE_PRECONDITION2(ok, false, "js_cocos2dx_audioengine_AudioEngine_setEnabled : Error processing arguments");
cocos2d::experimental::AudioEngine::setEnabled(arg0);
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
return false;
}
SE_BIND_FUNC(js_cocos2dx_audioengine_AudioEngine_setEnabled)
static bool js_cocos2dx_audioengine_AudioEngine_play2d(se::State& s)
{
const auto& args = s.args();
@@ -692,6 +725,22 @@ static bool js_cocos2dx_audioengine_AudioEngine_getProfile(se::State& s)
}
SE_BIND_FUNC(js_cocos2dx_audioengine_AudioEngine_getProfile)
static bool js_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount(se::State& s)
{
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 0) {
int result = cocos2d::experimental::AudioEngine::getPlayingAudioCount();
ok &= int32_to_seval(result, &s.rval());
SE_PRECONDITION2(ok, false, "js_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount : Error processing arguments");
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
return false;
}
SE_BIND_FUNC(js_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount)
@@ -708,6 +757,7 @@ bool js_register_cocos2dx_audioengine_AudioEngine(se::Object* obj)
cls->defineStaticFunction("pause", _SE(js_cocos2dx_audioengine_AudioEngine_pause));
cls->defineStaticFunction("end", _SE(js_cocos2dx_audioengine_AudioEngine_end));
cls->defineStaticFunction("getMaxAudioInstance", _SE(js_cocos2dx_audioengine_AudioEngine_getMaxAudioInstance));
cls->defineStaticFunction("isEnabled", _SE(js_cocos2dx_audioengine_AudioEngine_isEnabled));
cls->defineStaticFunction("getCurrentTime", _SE(js_cocos2dx_audioengine_AudioEngine_getCurrentTime));
cls->defineStaticFunction("setMaxAudioInstance", _SE(js_cocos2dx_audioengine_AudioEngine_setMaxAudioInstance));
cls->defineStaticFunction("isLoop", _SE(js_cocos2dx_audioengine_AudioEngine_isLoop));
@@ -715,6 +765,7 @@ bool js_register_cocos2dx_audioengine_AudioEngine(se::Object* obj)
cls->defineStaticFunction("uncacheAll", _SE(js_cocos2dx_audioengine_AudioEngine_uncacheAll));
cls->defineStaticFunction("setVolume", _SE(js_cocos2dx_audioengine_AudioEngine_setVolume));
cls->defineStaticFunction("preload", _SE(js_cocos2dx_audioengine_AudioEngine_preload));
cls->defineStaticFunction("setEnabled", _SE(js_cocos2dx_audioengine_AudioEngine_setEnabled));
cls->defineStaticFunction("play2d", _SE(js_cocos2dx_audioengine_AudioEngine_play2d));
cls->defineStaticFunction("getState", _SE(js_cocos2dx_audioengine_AudioEngine_getState));
cls->defineStaticFunction("resume", _SE(js_cocos2dx_audioengine_AudioEngine_resume));
@@ -724,6 +775,7 @@ bool js_register_cocos2dx_audioengine_AudioEngine(se::Object* obj)
cls->defineStaticFunction("getDefaultProfile", _SE(js_cocos2dx_audioengine_AudioEngine_getDefaultProfile));
cls->defineStaticFunction("setFinishCallback", _SE(js_cocos2dx_audioengine_AudioEngine_setFinishCallback));
cls->defineStaticFunction("getProfile", _SE(js_cocos2dx_audioengine_AudioEngine_getProfile));
cls->defineStaticFunction("getPlayingAudioCount", _SE(js_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount));
cls->install();
JSBClassType::registerClass<cocos2d::experimental::AudioEngine>(cls);
@@ -25,6 +25,7 @@ SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_stopAll);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_pause);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_end);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_getMaxAudioInstance);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_isEnabled);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_getCurrentTime);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_setMaxAudioInstance);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_isLoop);
@@ -32,6 +33,7 @@ SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_pauseAll);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_uncacheAll);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_setVolume);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_preload);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_setEnabled);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_play2d);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_getState);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_resume);
@@ -41,5 +43,6 @@ SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_setLoop);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_getDefaultProfile);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_setFinishCallback);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_getProfile);
SE_DECLARE_FUNC(js_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount);
#endif //#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
File diff suppressed because it is too large Load Diff
@@ -4561,7 +4561,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_dragonBones_CCArmatureDisplay_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (dragonBones::CCArmatureDisplay)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (dragonBones::CCArmatureDisplay)", s.nativeThisObject());
dragonBones::CCArmatureDisplay* cobj = (dragonBones::CCArmatureDisplay*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4622,7 +4622,7 @@ extern se::Object* __jsb_cocos2d_Sprite_proto;
static bool js_dragonBones_DBCCSprite_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (dragonBones::DBCCSprite)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (dragonBones::DBCCSprite)", s.nativeThisObject());
dragonBones::DBCCSprite* cobj = (dragonBones::DBCCSprite*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4871,7 +4871,7 @@ extern se::Object* __jsb_dragonBones_BaseFactory_proto;
static bool js_dragonBones_CCFactory_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (dragonBones::CCFactory)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (dragonBones::CCFactory)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -359,7 +359,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_experimental_ui_VideoPlayer_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::experimental::ui::VideoPlayer)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::experimental::ui::VideoPlayer)", s.nativeThisObject());
cocos2d::experimental::ui::VideoPlayer* cobj = (cocos2d::experimental::ui::VideoPlayer*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -575,7 +575,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_experimental_ui_WebView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::experimental::ui::WebView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::experimental::ui::WebView)", s.nativeThisObject());
cocos2d::experimental::ui::WebView* cobj = (cocos2d::experimental::ui::WebView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -264,7 +264,7 @@ extern se::Object* __jsb_cocos2d_EventCustom_proto;
static bool js_cocos2d_extension_EventAssetsManagerEx_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::EventAssetsManagerEx)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::EventAssetsManagerEx)", s.nativeThisObject());
cocos2d::extension::EventAssetsManagerEx* cobj = (cocos2d::extension::EventAssetsManagerEx*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -573,7 +573,7 @@ SE_BIND_CTOR(js_cocos2dx_extension_Manifest_constructor, __jsb_cocos2d_extension
static bool js_cocos2d_extension_Manifest_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::Manifest)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::Manifest)", s.nativeThisObject());
cocos2d::extension::Manifest* cobj = (cocos2d::extension::Manifest*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1141,7 +1141,7 @@ SE_BIND_CTOR(js_cocos2dx_extension_AssetsManagerEx_constructor, __jsb_cocos2d_ex
static bool js_cocos2d_extension_AssetsManagerEx_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::AssetsManagerEx)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::AssetsManagerEx)", s.nativeThisObject());
cocos2d::extension::AssetsManagerEx* cobj = (cocos2d::extension::AssetsManagerEx*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1309,7 +1309,7 @@ extern se::Object* __jsb_cocos2d_EventListenerCustom_proto;
static bool js_cocos2d_extension_EventListenerAssetsManagerEx_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::EventListenerAssetsManagerEx)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::EventListenerAssetsManagerEx)", s.nativeThisObject());
cocos2d::extension::EventListenerAssetsManagerEx* cobj = (cocos2d::extension::EventListenerAssetsManagerEx*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1596,7 +1596,7 @@ extern se::Object* __jsb_cocos2d_Layer_proto;
static bool js_cocos2d_extension_Control_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::Control)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::Control)", s.nativeThisObject());
cocos2d::extension::Control* cobj = (cocos2d::extension::Control*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -2507,7 +2507,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlButton_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlButton)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlButton)", s.nativeThisObject());
cocos2d::extension::ControlButton* cobj = (cocos2d::extension::ControlButton*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -2804,7 +2804,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlHuePicker_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlHuePicker)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlHuePicker)", s.nativeThisObject());
cocos2d::extension::ControlHuePicker* cobj = (cocos2d::extension::ControlHuePicker*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -3031,7 +3031,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlSaturationBrightnessPicker_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlSaturationBrightnessPicker)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlSaturationBrightnessPicker)", s.nativeThisObject());
cocos2d::extension::ControlSaturationBrightnessPicker* cobj = (cocos2d::extension::ControlSaturationBrightnessPicker*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -3264,7 +3264,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlColourPicker_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlColourPicker)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlColourPicker)", s.nativeThisObject());
cocos2d::extension::ControlColourPicker* cobj = (cocos2d::extension::ControlColourPicker*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -3707,7 +3707,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlPotentiometer_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlPotentiometer)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlPotentiometer)", s.nativeThisObject());
cocos2d::extension::ControlPotentiometer* cobj = (cocos2d::extension::ControlPotentiometer*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4270,7 +4270,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlSlider_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlSlider)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlSlider)", s.nativeThisObject());
cocos2d::extension::ControlSlider* cobj = (cocos2d::extension::ControlSlider*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4741,7 +4741,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlStepper_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlStepper)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlStepper)", s.nativeThisObject());
cocos2d::extension::ControlStepper* cobj = (cocos2d::extension::ControlStepper*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -5022,7 +5022,7 @@ extern se::Object* __jsb_cocos2d_extension_Control_proto;
static bool js_cocos2d_extension_ControlSwitch_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ControlSwitch)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ControlSwitch)", s.nativeThisObject());
cocos2d::extension::ControlSwitch* cobj = (cocos2d::extension::ControlSwitch*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -5738,7 +5738,7 @@ extern se::Object* __jsb_cocos2d_Layer_proto;
static bool js_cocos2d_extension_ScrollView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::ScrollView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::ScrollView)", s.nativeThisObject());
cocos2d::extension::ScrollView* cobj = (cocos2d::extension::ScrollView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -5896,7 +5896,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_cocos2d_extension_TableViewCell_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::TableViewCell)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::TableViewCell)", s.nativeThisObject());
cocos2d::extension::TableViewCell* cobj = (cocos2d::extension::TableViewCell*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -6179,7 +6179,7 @@ extern se::Object* __jsb_cocos2d_extension_ScrollView_proto;
static bool js_cocos2d_extension_TableView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::extension::TableView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::extension::TableView)", s.nativeThisObject());
cocos2d::extension::TableView* cobj = (cocos2d::extension::TableView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -227,7 +227,7 @@ SE_BIND_CTOR(js_cocos2dx_network_Downloader_constructor, __jsb_cocos2d_network_D
static bool js_cocos2d_network_Downloader_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::network::Downloader)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::network::Downloader)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -748,7 +748,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_spine_SkeletonRenderer_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (spine::SkeletonRenderer)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (spine::SkeletonRenderer)", s.nativeThisObject());
spine::SkeletonRenderer* cobj = (spine::SkeletonRenderer*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1681,7 +1681,7 @@ extern se::Object* __jsb_spine_SkeletonRenderer_proto;
static bool js_spine_SkeletonAnimation_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (spine::SkeletonAnimation)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (spine::SkeletonAnimation)", s.nativeThisObject());
spine::SkeletonAnimation* cobj = (spine::SkeletonAnimation*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -74,7 +74,7 @@ SE_BIND_CTOR(js_cocos2dx_ui_LayoutParameter_constructor, __jsb_cocos2d_ui_Layout
static bool js_cocos2d_ui_LayoutParameter_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::LayoutParameter)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::LayoutParameter)", s.nativeThisObject());
cocos2d::ui::LayoutParameter* cobj = (cocos2d::ui::LayoutParameter*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -176,7 +176,7 @@ extern se::Object* __jsb_cocos2d_ui_LayoutParameter_proto;
static bool js_cocos2d_ui_LinearLayoutParameter_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::LinearLayoutParameter)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::LinearLayoutParameter)", s.nativeThisObject());
cocos2d::ui::LinearLayoutParameter* cobj = (cocos2d::ui::LinearLayoutParameter*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -352,7 +352,7 @@ extern se::Object* __jsb_cocos2d_ui_LayoutParameter_proto;
static bool js_cocos2d_ui_RelativeLayoutParameter_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RelativeLayoutParameter)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RelativeLayoutParameter)", s.nativeThisObject());
cocos2d::ui::RelativeLayoutParameter* cobj = (cocos2d::ui::RelativeLayoutParameter*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1854,7 +1854,7 @@ extern se::Object* __jsb_cocos2d_ProtectedNode_proto;
static bool js_cocos2d_ui_Widget_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::Widget)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::Widget)", s.nativeThisObject());
cocos2d::ui::Widget* cobj = (cocos2d::ui::Widget*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -2641,7 +2641,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_Layout_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::Layout)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::Layout)", s.nativeThisObject());
cocos2d::ui::Layout* cobj = (cocos2d::ui::Layout*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -3595,7 +3595,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_Button_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::Button)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::Button)", s.nativeThisObject());
cocos2d::ui::Button* cobj = (cocos2d::ui::Button*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4363,7 +4363,7 @@ extern se::Object* __jsb_cocos2d_ui_AbstractCheckButton_proto;
static bool js_cocos2d_ui_CheckBox_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::CheckBox)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::CheckBox)", s.nativeThisObject());
cocos2d::ui::CheckBox* cobj = (cocos2d::ui::CheckBox*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4567,7 +4567,7 @@ extern se::Object* __jsb_cocos2d_ui_AbstractCheckButton_proto;
static bool js_cocos2d_ui_RadioButton_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RadioButton)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RadioButton)", s.nativeThisObject());
cocos2d::ui::RadioButton* cobj = (cocos2d::ui::RadioButton*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -4903,7 +4903,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_RadioButtonGroup_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RadioButtonGroup)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RadioButtonGroup)", s.nativeThisObject());
cocos2d::ui::RadioButtonGroup* cobj = (cocos2d::ui::RadioButtonGroup*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -5184,7 +5184,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_ImageView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::ImageView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::ImageView)", s.nativeThisObject());
cocos2d::ui::ImageView* cobj = (cocos2d::ui::ImageView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -5903,7 +5903,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_Text_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::Text)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::Text)", s.nativeThisObject());
cocos2d::ui::Text* cobj = (cocos2d::ui::Text*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -6146,7 +6146,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_TextAtlas_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::TextAtlas)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::TextAtlas)", s.nativeThisObject());
cocos2d::ui::TextAtlas* cobj = (cocos2d::ui::TextAtlas*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -6476,7 +6476,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_LoadingBar_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::LoadingBar)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::LoadingBar)", s.nativeThisObject());
cocos2d::ui::LoadingBar* cobj = (cocos2d::ui::LoadingBar*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -7593,7 +7593,7 @@ extern se::Object* __jsb_cocos2d_ui_Layout_proto;
static bool js_cocos2d_ui_ScrollView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::ScrollView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::ScrollView)", s.nativeThisObject());
cocos2d::ui::ScrollView* cobj = (cocos2d::ui::ScrollView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -8397,7 +8397,7 @@ extern se::Object* __jsb_cocos2d_ui_ScrollView_proto;
static bool js_cocos2d_ui_ListView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::ListView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::ListView)", s.nativeThisObject());
cocos2d::ui::ListView* cobj = (cocos2d::ui::ListView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -9107,7 +9107,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_Slider_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::Slider)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::Slider)", s.nativeThisObject());
cocos2d::ui::Slider* cobj = (cocos2d::ui::Slider*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -9677,7 +9677,7 @@ extern se::Object* __jsb_cocos2d_TextFieldTTF_proto;
static bool js_cocos2d_ui_UICCTextField_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::UICCTextField)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::UICCTextField)", s.nativeThisObject());
cocos2d::ui::UICCTextField* cobj = (cocos2d::ui::UICCTextField*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -10662,7 +10662,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_TextField_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::TextField)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::TextField)", s.nativeThisObject());
cocos2d::ui::TextField* cobj = (cocos2d::ui::TextField*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -10902,7 +10902,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_TextBMFont_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::TextBMFont)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::TextBMFont)", s.nativeThisObject());
cocos2d::ui::TextBMFont* cobj = (cocos2d::ui::TextBMFont*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -11505,7 +11505,7 @@ extern se::Object* __jsb_cocos2d_ui_ListView_proto;
static bool js_cocos2d_ui_PageView_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::PageView)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::PageView)", s.nativeThisObject());
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -11839,7 +11839,7 @@ SE_BIND_SUB_CLS_CTOR(js_cocos2dx_ui_RichElement_ctor, __jsb_cocos2d_ui_RichEleme
static bool js_cocos2d_ui_RichElement_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RichElement)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RichElement)", s.nativeThisObject());
cocos2d::ui::RichElement* cobj = (cocos2d::ui::RichElement*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -12383,7 +12383,7 @@ extern se::Object* __jsb_cocos2d_ui_RichElement_proto;
static bool js_cocos2d_ui_RichElementText_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementText)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementText)", s.nativeThisObject());
cocos2d::ui::RichElementText* cobj = (cocos2d::ui::RichElementText*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -12587,7 +12587,7 @@ extern se::Object* __jsb_cocos2d_ui_RichElement_proto;
static bool js_cocos2d_ui_RichElementImage_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementImage)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementImage)", s.nativeThisObject());
cocos2d::ui::RichElementImage* cobj = (cocos2d::ui::RichElementImage*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -12701,7 +12701,7 @@ extern se::Object* __jsb_cocos2d_ui_RichElement_proto;
static bool js_cocos2d_ui_RichElementCustomNode_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementCustomNode)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementCustomNode)", s.nativeThisObject());
cocos2d::ui::RichElementCustomNode* cobj = (cocos2d::ui::RichElementCustomNode*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -12783,7 +12783,7 @@ extern se::Object* __jsb_cocos2d_ui_RichElement_proto;
static bool js_cocos2d_ui_RichElementNewLine_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementNewLine)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RichElementNewLine)", s.nativeThisObject());
cocos2d::ui::RichElementNewLine* cobj = (cocos2d::ui::RichElementNewLine*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -13864,7 +13864,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_RichText_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RichText)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RichText)", s.nativeThisObject());
cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -14015,7 +14015,7 @@ extern se::Object* __jsb_cocos2d_ui_Layout_proto;
static bool js_cocos2d_ui_HBox_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::HBox)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::HBox)", s.nativeThisObject());
cocos2d::ui::HBox* cobj = (cocos2d::ui::HBox*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -14122,7 +14122,7 @@ extern se::Object* __jsb_cocos2d_ui_Layout_proto;
static bool js_cocos2d_ui_VBox_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::VBox)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::VBox)", s.nativeThisObject());
cocos2d::ui::VBox* cobj = (cocos2d::ui::VBox*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -14229,7 +14229,7 @@ extern se::Object* __jsb_cocos2d_ui_Layout_proto;
static bool js_cocos2d_ui_RelativeBox_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::RelativeBox)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::RelativeBox)", s.nativeThisObject());
cocos2d::ui::RelativeBox* cobj = (cocos2d::ui::RelativeBox*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -15288,7 +15288,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_cocos2d_ui_Scale9Sprite_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::Scale9Sprite)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::Scale9Sprite)", s.nativeThisObject());
cocos2d::ui::Scale9Sprite* cobj = (cocos2d::ui::Scale9Sprite*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -15902,7 +15902,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_EditBox_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::EditBox)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::EditBox)", s.nativeThisObject());
cocos2d::ui::EditBox* cobj = (cocos2d::ui::EditBox*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -16918,7 +16918,7 @@ extern se::Object* __jsb_cocos2d_Component_proto;
static bool js_cocos2d_ui_LayoutComponent_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::LayoutComponent)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::LayoutComponent)", s.nativeThisObject());
cocos2d::ui::LayoutComponent* cobj = (cocos2d::ui::LayoutComponent*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -17298,7 +17298,7 @@ extern se::Object* __jsb_cocos2d_ui_AbstractCheckButton_proto;
static bool js_cocos2d_ui_TabHeader_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::TabHeader)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::TabHeader)", s.nativeThisObject());
cocos2d::ui::TabHeader* cobj = (cocos2d::ui::TabHeader*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -17768,7 +17768,7 @@ extern se::Object* __jsb_cocos2d_ui_Widget_proto;
static bool js_cocos2d_ui_TabControl_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (cocos2d::ui::TabControl)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (cocos2d::ui::TabControl)", s.nativeThisObject());
cocos2d::ui::TabControl* cobj = (cocos2d::ui::TabControl*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -697,7 +697,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_creator_Scale9SpriteV2_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::Scale9SpriteV2)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::Scale9SpriteV2)", s.nativeThisObject());
creator::Scale9SpriteV2* cobj = (creator::Scale9SpriteV2*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1463,7 +1463,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_creator_GraphicsNode_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::GraphicsNode)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::GraphicsNode)", s.nativeThisObject());
creator::GraphicsNode* cobj = (creator::GraphicsNode*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();
@@ -1595,7 +1595,7 @@ extern se::Object* __jsb_b2Draw_proto;
static bool js_creator_PhysicsDebugDraw_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsDebugDraw)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsDebugDraw)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -1761,7 +1761,7 @@ SE_BIND_CTOR(js_creator_PhysicsWorldManifoldWrapper_constructor, __jsb_creator_P
static bool js_creator_PhysicsWorldManifoldWrapper_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsWorldManifoldWrapper)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsWorldManifoldWrapper)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_creator_PhysicsWorldManifoldWrapper_finalize)
@@ -1998,7 +1998,7 @@ SE_BIND_CTOR(js_creator_PhysicsManifoldWrapper_constructor, __jsb_creator_Physic
static bool js_creator_PhysicsManifoldWrapper_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsManifoldWrapper)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsManifoldWrapper)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_creator_PhysicsManifoldWrapper_finalize)
@@ -2138,7 +2138,7 @@ SE_BIND_CTOR(js_creator_PhysicsUtils_constructor, __jsb_creator_PhysicsUtils_cla
static bool js_creator_PhysicsUtils_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsUtils)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsUtils)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -2249,7 +2249,7 @@ SE_BIND_CTOR(js_creator_PhysicsContactImpulse_constructor, __jsb_creator_Physics
static bool js_creator_PhysicsContactImpulse_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsContactImpulse)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsContactImpulse)", s.nativeThisObject());
return true;
}
SE_BIND_FINALIZE_FUNC(js_creator_PhysicsContactImpulse_finalize)
@@ -2330,7 +2330,7 @@ extern se::Object* __jsb_b2ContactListener_proto;
static bool js_creator_PhysicsContactListener_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsContactListener)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsContactListener)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -2426,7 +2426,7 @@ extern se::Object* __jsb_b2QueryCallback_proto;
static bool js_creator_PhysicsAABBQueryCallback_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsAABBQueryCallback)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsAABBQueryCallback)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -2530,7 +2530,7 @@ extern se::Object* __jsb_b2RayCastCallback_proto;
static bool js_creator_PhysicsRayCastCallback_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::PhysicsRayCastCallback)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::PhysicsRayCastCallback)", s.nativeThisObject());
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
{
@@ -2703,7 +2703,7 @@ extern se::Object* __jsb_cocos2d_Node_proto;
static bool js_creator_CameraNode_finalize(se::State& s)
{
cocos2d::log("jsbindings: finalizing JS object %p (creator::CameraNode)", s.nativeThisObject());
CCLOG("jsbindings: finalizing JS object %p (creator::CameraNode)", s.nativeThisObject());
creator::CameraNode* cobj = (creator::CameraNode*)s.nativeThisObject();
if (cobj->getReferenceCount() == 1)
cobj->autorelease();