Created
February 1, 2014 10:27
-
-
Save im6e/8750481 to your computer and use it in GitHub Desktop.
NSLog macro
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 | |
# ifndef DLog | |
# define DLog(__FORMAT__,...) NSLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
# endif | |
#else | |
# ifndef DLog | |
# define DLog(...) /* */ | |
# endif | |
#endif /* if DEBUG */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment