Skip to content

Instantly share code, notes, and snippets.

@daehn
Last active August 29, 2015 14:17
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 daehn/b392c4707220b6fe9a1e to your computer and use it in GitHub Desktop.
Save daehn/b392c4707220b6fe9a1e to your computer and use it in GitHub Desktop.
Debug configuration error logging macro
#ifndef ERROR_LOG
#ifdef DEBUG
#define ERROR_LOG(error) if(error){NSLog(@"%s Error: %@", __PRETTY_FUNCTION__, error);}
#else
#define ERROR_LOG(error)
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment