ios 宏定义

#ifdef DEBUG
    #define MALog(...) NSLog(__VA_ARGS__);
    #define MALog_Func(x) NSLog(@"%s: L%d :%@", __func__, __LINE__, (x));
    #define MALogStack NSLog(@"%s: L%d :%@", __func__, __LINE__, [NSThread callStackSymbols]);
#else
    #define MALOG(...);
    #define MALog_Func(x);
    #define MALogStack;
#endif

原文地址:https://www.cnblogs.com/hbf369/p/3077716.html