Skip to content

Instantly share code, notes, and snippets.

@tomohisa
Created January 20, 2015 14:29
Show Gist options
  • Save tomohisa/095880cd60853eb15dc4 to your computer and use it in GitHub Desktop.
Save tomohisa/095880cd60853eb15dc4 to your computer and use it in GitHub Desktop.
Disable NSLog for keyboard extension
#ifdef DEBUG
//# define LOG(...) NSLog(@"%@", __VA_ARGS__)
//# define LOG_METHOD NSLog(@"%s", __func__)
//# define LOG_FORMAT(...) NSLog(__VA_ARGS__)
# define LOG(...) ;
# define LOG_METHOD ;
# define LOG_FORMAT(...) ;
#else
# define LOG(...) ;
# define LOG_METHOD ;
# define LOG_FORMAT(...) ;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment