log

作者: 失忆的程序员 | 来源:发表于2019-05-15 17:38 被阅读0次

/** log... */

#ifdef DEBUG

//#define XPFLog(fmt, ...) NSLog((@"[函数名:%s]" "[行号:%d]" fmt),__FUNCTION__, __LINE__, ##__VA_ARGS__)

#define XPFLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String])

#else

#define XPFLog(...)

#endif

相关文章

网友评论

      本文标题:log

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