mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 02:52:39 +08:00
Complete jsb proxy tracking log infos
This commit is contained in:
@@ -2256,6 +2256,10 @@ void jsb_ref_autoreleased_init(JSContext* cx, JS::HandleObject obj, Ref* ref, co
|
||||
// rebind
|
||||
void jsb_ref_rebind(JSContext* cx, JS::HandleObject jsobj, js_proxy_t *proxy, cocos2d::Ref* oldRef, cocos2d::Ref* newRef, const char* debug)
|
||||
{
|
||||
#if COCOS2D_DEBUG > 1
|
||||
CCLOG("------REBOUND------ Cpp(%s): %p - JS: %p", debug, oldRef, jsobj.get());
|
||||
CCLOG("++++++REBOUND++++++ Cpp(%s): %p - JS: %p", debug, newRef, jsobj.get());
|
||||
#endif // COCOS2D_DEBUG
|
||||
#if CC_ENABLE_GC_FOR_NATIVE_OBJECTS
|
||||
// Release the old reference as it have been retained by jsobj previously,
|
||||
// and the jsobj won't have any chance to release it in the future
|
||||
|
||||
Reference in New Issue
Block a user