Fixed compile error with CC_REF_LEAK_DETECTION

This commit is contained in:
cpascal 2014-11-05 16:23:25 +09:00
parent c1caa8515c
commit c1f85bac0e
2 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ static void untrackRef(Ref* ref)
__refAllocationList.erase(iter);
}
#endif // #if CC_USE_MEM_LEAK_DETECTION
#endif // #if CC_REF_LEAK_DETECTION
NS_CC_END

View File

@ -146,8 +146,8 @@ public:
void* _scriptObject;
#endif
// Memory leak diagnostic data (only included when CC_USE_MEM_LEAK_DETECTION is defined and its value isn't zero)
#if CC_USE_MEM_LEAK_DETECTION
// Memory leak diagnostic data (only included when CC_REF_LEAK_DETECTION is defined and its value isn't zero)
#if CC_REF_LEAK_DETECTION
public:
static void printLeaks();
#endif