美文网首页
打印日志

打印日志

作者: hypercode | 来源:发表于2020-04-29 15:53 被阅读0次
#if DEBUG
#define NSLog(format, ...) \
    do { \
        NSLog(@"<%@ : %d : %s>------: %@", \
        [[NSString stringWithUTF8String:__FILE__] lastPathComponent], \
        __LINE__, \
        __FUNCTION__, \
        [NSString stringWithFormat:format, ##__VA_ARGS__]); \
    } while(0)
#else
#define NSLog(format, ...) do{ } while(0)
#endif

相关文章

网友评论

      本文标题:打印日志

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