ä¸è¨ã®ãããªæåãªãã°åºåãã¯ããããã¾ããã #ifdef DEBUG # define LOG_CURRENT_METHOD NSLog(@"%@/%@", NSStringFromClass([self class]), NSStringFromSelector(_cmd)) #else # define LOG_CURRENT_METHOD ; #endif ãããã©ã¹ã¢ã«ãã¡ã§ã¡ãã£ã¨ä¾¿å©ãªãã¯ãããç´¹ä»ãã¾ãã ä¸è¨ãã¯ããå®ç¾©ãã¦ã #ifdef DEBUG # define LOG_CURRENT_LINE(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); #else # define LOG_CURRENT_LINE(...) #endif ãã¨ãã°
{{#tags}}- {{label}}
{{/tags}}