Created
May 5, 2012 09:50
-
-
Save shinyzhu/2601241 to your computer and use it in GitHub Desktop.
NSLog replacement
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
// NSLog replacement | |
#define MYLogEnabled NO | |
#define MYLog(format, ...) \ | |
if(MYLogEnabled){NSLog(@"%s: (Ln%i) %@", __PRETTY_FUNCTION__, __LINE__, [NSString stringWithFormat:format, ## __VA_ARGS__]);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment