Created
January 11, 2012 02:50
-
-
Save alanthonyc/1592691 to your computer and use it in GitHub Desktop.
Debug Log Macro for iOS (pulled from zonque's code)
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
#ifdef ENABLE_DEBUG | |
#define DebugLog(format, args...) \ | |
NSLog(@"%s, line %d: " format "\n", \ | |
__func__, __LINE__, ## args); | |
#else | |
#define DebugLog(format, args...) do {} while(0) | |
#endif | |
// sample use | |
DebugLog("number: %d ; class %p", count, className); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment