Erweitertes Logging für Precompiled Headers

Posted: 27. April 2014 in Development, iOS

Ergänzen der Precompiled Headers (*-prefix.pch):

// DLog: DEBUG Only
#ifdef DEBUG
#   define DLog(fmt, ...) NSLog((@"%s:%d | " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#   define DLog(...)
#endif

// ALog: Always displays output regardless of the DEBUG setting
#define ALog(fmt, ...) NSLog((@"%s:%d | " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)

Comments are closed.