Skip to content

Instantly share code, notes, and snippets.

@shinyzhu
Created May 5, 2012 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinyzhu/2601241 to your computer and use it in GitHub Desktop.
Save shinyzhu/2601241 to your computer and use it in GitHub Desktop.
NSLog replacement
// 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