Created
July 30, 2014 09:22
-
-
Save hsienwei/82778844500073133a82 to your computer and use it in GitHub Desktop.
一個簡單的測試用Log方法 用於objective-c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef DEBUG | |
# define debugLog(format, ...) NSLog(@"<Debug>: " format @" [" __FILE__ @":%i]", ##__VA_ARGS__, __LINE__) | |
#else | |
# define debugLog(format, ...) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment