#ifdef DEBUG
#define DMString [NSString stringWithFormat:@"%s", __FILE__].lastPathComponent
#define NSLog(...) printf("%s第%d行: %s\n\n", [DMString UTF8String] ,__LINE__, [[NSString stringWithFormat:__VA_ARGS__] UTF8String]);
#else
#define NSLog(...)
#endif
iOS打印输出
最新推荐文章于 2022-08-17 14:33:02 发布