Last active
December 19, 2015 08:19
-
-
Save hunje/5925302 to your computer and use it in GitHub Desktop.
Log macro for iOS
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
#if defined(DEBUG) | |
#define HTLog(__VA_ARGS__) NSLog(__VA_ARGS__) | |
#define HTLog2(fmt, ...) NSLog((fmt), ##__VAR_ARGS__) | |
#else | |
#define HTLog(__VA_ARGS__) while (FALSE) { } | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment