PCH 以及log

     $(SRCROOT)/PCHFile/Project-Prefix.pch

 

#ifdef DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(...)

#endif

 

posted @ 2015-04-14 14:55  銱ル╬鎯噹  阅读(112)  评论(0编辑  收藏  举报