NSLog()ããããã¯ä¸ã¯ä¾¿å©ãªãã§ãããªãªã¼ã¹ãããã®ã«å ¥ããã¾ã¾ã ã¨ã»ãã¥ãªãã£ã¨é度ã®ä¸¡é¢ããè¯ããªãã§ãã ãã®ãããªå ´åã«ã¯ #define ã§ç½®ãæãã§å¯¾å¿ããã®ã§ãããã®ç½®ãæãã«ã¤ãã¦ä¸å¯§ãªè§£èª¬ããã¦ããããã°ãè¦ã¤ããã®ã§ç´¹ä»ã The Evolution of a Replacement for NSLog | iPhone Development Blog http://iphoneincubator.com/blog/debugging/the-evolution-of-a-replacement-for-nslog æçµçã«ã¯ãããªæ¸ãæ¹ã«ãªã£ã¦ã¾ãã #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); ãããªè¨è¿°ã
{{#tags}}- {{label}}
{{/tags}}