Skip to content

Instantly share code, notes, and snippets.

@daehn
Last active August 29, 2015 14:17
Show Gist options
  • Save daehn/28d02dc710c14df38a72 to your computer and use it in GitHub Desktop.
Save daehn/28d02dc710c14df38a72 to your computer and use it in GitHub Desktop.
Debug configuration NSLog replacement
#ifndef DEBUG_LOG
#ifdef DEBUG
#define DEBUG_LOG(fmt, ...) NSLog(fmt, ##__VA_ARGS__)
#else
#define DEBUG_LOG(fmt, ...)
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment