debug的时候打印日志输出文件名/第几行...略去了时间戳信息
#ifdef DEBUG
#define JLLog(FORMAT, ...) fprintf(stderr,"%s:第 %d 行\n%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define JLLog(...)
#endif
网友评论