/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Macro voodo? Will not be printed if application is build with -DPRODUCTION // Ex. Log(@"String with %s", @"Formatting"); #ifndef PRODUCTION #define Log(format, ...) \ NSLog(@"(%s)[%s:%d] %s", __FUNCTION__,__FILE__,__LINE__, [[NSString stringWithFormat:format, ##__VA_ARGS__] UTF8String]) #else #define Log(format, ...) /* NOT USED IN PRODUCTION */ #endif