xcode打印不全

#ifdef DEBUG

//调试状态

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

#else

//发布状态

#define ZLYLog(FORMAT, ...) nil

#endif



相关文章: