Skip to content

Instantly share code, notes, and snippets.

@benaneesh
Created January 29, 2015 21:16
Show Gist options
  • Save benaneesh/2d2b03ab77202ec67be0 to your computer and use it in GitHub Desktop.
Save benaneesh/2d2b03ab77202ec67be0 to your computer and use it in GitHub Desktop.
Suppress printlns in production
#ifdef DEBUG
#define NSLog(...) /* suppress NSLog when in release mode */
#endif
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