美文网首页
Xcode解决打印一半的问题

Xcode解决打印一半的问题

作者: 沉江小鱼 | 来源:发表于2020-04-20 15:33 被阅读0次
#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

相关文章

网友评论

      本文标题:Xcode解决打印一半的问题

      本文链接:https://www.haomeiwen.com/subject/vlsdihtx.html