Last active
August 29, 2015 14:17
-
-
Save daehn/b392c4707220b6fe9a1e to your computer and use it in GitHub Desktop.
Debug configuration error logging macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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