Skip to content

Instantly share code, notes, and snippets.

@sinri
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinri/0a0eb5eb94b8991b4f7f to your computer and use it in GitHub Desktop.
Save sinri/0a0eb5eb94b8991b4f7f to your computer and use it in GitHub Desktop.
Xcode6でPCHファイルを追加する方法 ref: http://qiita.com/sinri/items/bfc1f27b1a4db5b44586
#ifdef DEBUG
#define _Log(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define _Log(...)
#endif
// ALog always displays output regardless of the DEBUG alarm
#define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment