Skip to content

Instantly share code, notes, and snippets.

@congpc
Created October 9, 2015 02:29
Log message in debug mode.
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define DLog(...)
#endif
// ALog will always output like NSLog
#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