Created
February 10, 2014 12:52
-
-
Save jamesnesfield/8915369 to your computer and use it in GitHub Desktop.
iOS debug-only logging
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
/* place in pch | |
from http://stackoverflow.com/questions/9621143/debuglog-format-string-is-not-a-string-literal | |
*/ | |
#ifdef DEBUG | |
#define DebugLog(s, ...) NSLog(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