Skip to content

Instantly share code, notes, and snippets.

@samdmarshall
Created July 11, 2012 13:46
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 samdmarshall/3090442 to your computer and use it in GitHub Desktop.
Save samdmarshall/3090442 to your computer and use it in GitHub Desktop.
#if defined(CONFIGURATION_Debug)
#define NSLog( s, ... ) NSLog(@"[%p %@:(%d)] %@ %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithUTF8String:__PRETTY_FUNCTION__], [NSString stringWithFormat:(s), ##__VA_ARGS__])
#else
#define NSLog( s, ... )
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment