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

 

 

posted @ 2013-05-14 14:07  翛尧  阅读(139)  评论(0编辑  收藏  举报