解决Xcode8 Nslog 打印不全

#ifdef DEBUG

 

#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(FORMAT, ...) nil

 

#endif

posted on 2017-05-17 14:15  houhuohuo  阅读(893)  评论(0)    收藏  举报