#include "cocos2d.h"
#if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#define CCLog(...) __android_log_print(ANDROID_LOG_DEBUG,"cocos2d-x", __VA_ARGS__)
#endif
在cocos2dx开发中遇到过log过多 过滤不方便,因此我们自定义一个cclog
可以在公用代码中加上以上宏定义
#include "cocos2d.h"
#if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#define CCLog(...) __android_log_print(ANDROID_LOG_DEBUG,"cocos2d-x", __VA_ARGS__)
#endif
在cocos2dx开发中遇到过log过多 过滤不方便,因此我们自定义一个cclog
转载于:https://my.oschina.net/liuwj/blog/144476