Created
January 29, 2015 21:16
-
-
Save benaneesh/2d2b03ab77202ec67be0 to your computer and use it in GitHub Desktop.
Suppress printlns in production
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 DEBUG | |
#define NSLog(...) /* suppress NSLog when in release mode */ | |
#endif |
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
func println(object: Any) { | |
#if DEBUG | |
Swift.println(object) | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment