开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2018.02.02
//#ifndef __OPTIMIZE__
//#define NSLog(...) NSLog(__VA_ARGS__)
//#else
//#define NSLog(...) {}
//
//#endif
// 解决nslog打印不全
#ifndef __OPTIMIZE__ //开发阶段
#define NSLog(FORMAT, ...) fprintf(stderr, "%s:%zd\t%s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat: FORMAT, ## __VA_ARGS__] UTF8String]);
#else //发布阶段
#define NSLog(...) {}
#endif
微信登录中...请勿关闭此页面