Created
October 23, 2015 10:24
-
-
Save bouassaba/a12e9a135a01f2232fec to your computer and use it in GitHub Desktop.
iOS Debug Log Macro
This file contains hidden or 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
#define DEBUG_MODE | |
#ifdef DEBUG_MODE | |
#define DebugLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] ) | |
#else | |
#define DebugLog( s, ... ) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment