常用宏

作者: foolish_hungry | 来源:发表于2018-06-13 12:28 被阅读0次

打印

#ifdef DEBUG

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

#else

#define DLog( s, ... )

#endif

持续更新中...

相关文章

网友评论

      本文标题:常用宏

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