Skip to content

Instantly share code, notes, and snippets.

@christianroman
Created October 30, 2013 19:26
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 christianroman/7238637 to your computer and use it in GitHub Desktop.
Save christianroman/7238637 to your computer and use it in GitHub Desktop.
Enhanced NSLog function
#ifdef VERBOSE_DEBUG_LOGGING
# define NSLog(fmt, ...) NSLog((@"%s(%d) " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define NSLog(...)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment