Skip to content

Instantly share code, notes, and snippets.

@ojimac
Last active December 10, 2015 01:19
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 ojimac/4357928 to your computer and use it in GitHub Desktop.
Save ojimac/4357928 to your computer and use it in GitHub Desktop.
#ifdef DEBUG
# define LOG(fmt, ...) {NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);}
# define ELOG(err) {if(err) DLog(@"%@", err)}
#else
# define LOG(...)
# define ELOG(err)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment