打印输出调试
#ifdef DEBUG
#define LRString [NSString stringWithFormat:@"%s", __FILE__].lastPathComponent
#define NSLog(...) printf("[类名:%s][第%d行]: %s\n\n", [LRString UTF8String], __LINE__, [NSString stringWithFormat:__VA_ARGS__] UTF8String);
#else
#define NSLog(...)
#endif
网友评论