Skip to content

Instantly share code, notes, and snippets.

@elado
Created August 25, 2011 16:24
Show Gist options
  • Save elado/1171075 to your computer and use it in GitHub Desktop.
Save elado/1171075 to your computer and use it in GitHub Desktop.
Turn off logging in Obj-C
#define GB_ALLOW_LOG 1
#if GB_ALLOW_LOG
#define GB_LOG(fmt, ...) NSLog(fmt, ##__VA_ARGS__)
#else
#define GB_LOG(fmt, ...)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment