有趣的NSLog Silence_xl 2020-12-01 101 阅读1分钟 #ifdef DEBUG # define DLog(format, ...) NSLog((@"[文件名:%s]" "[函数名:%s]" "[行号:%d]" format), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__); #else # define DLog(...); #endif