// // Prefix header for all source files of the 'MasterPassword' target in the 'MasterPassword' project // #import #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8 #warning "This project uses features only available in Mac OS X 10.8 and later." #endif #import "Pearl-Prefix.pch" #ifdef __OBJC__ #import #import #import #ifdef CRASHLYTICS #import #endif #import "MPTypes.h" #import "MPMacConfig.h" #else #import #import #import #import #define trc(format, ...) objc_msgSend( \ objc_msgSend( (id)objc_getClass("PearlLogger"), sel_getUid( "get" ) ), \ sel_getUid( "inFile:atLine:trc:" ), \ basename( (char *)__FILE__ ), __LINE__, \ CFStringCreateWithCString( NULL, format, kCFStringEncodingUTF8 ), \ ##__VA_ARGS__) #define dbg(format, ...) objc_msgSend( \ objc_msgSend( (id)objc_getClass("PearlLogger"), sel_getUid( "get" ) ), \ sel_getUid( "inFile:atLine:dbg:" ), \ basename( (char *)__FILE__ ), __LINE__, \ CFStringCreateWithCString( NULL, format, kCFStringEncodingUTF8 ), \ ##__VA_ARGS__) #define inf(format, ...) objc_msgSend( \ objc_msgSend( (id)objc_getClass("PearlLogger"), sel_getUid( "get" ) ), \ sel_getUid( "inFile:atLine:inf:" ), \ basename( (char *)__FILE__ ), __LINE__, \ CFStringCreateWithCString( NULL, format, kCFStringEncodingUTF8 ), \ ##__VA_ARGS__) #define wrn(format, ...) objc_msgSend( \ objc_msgSend( (id)objc_getClass("PearlLogger"), sel_getUid( "get" ) ), \ sel_getUid( "inFile:atLine:wrn:" ), \ basename( (char *)__FILE__ ), __LINE__, \ CFStringCreateWithCString( NULL, format, kCFStringEncodingUTF8 ), \ ##__VA_ARGS__) #define err(format, ...) objc_msgSend( \ objc_msgSend( (id)objc_getClass("PearlLogger"), sel_getUid( "get" ) ), \ sel_getUid( "inFile:atLine:err:" ), \ basename( (char *)__FILE__ ), __LINE__, \ CFStringCreateWithCString( NULL, format, kCFStringEncodingUTF8 ), \ ##__VA_ARGS__) #define ftl(format, ...) do{objc_msgSend( \ objc_msgSend( (id)objc_getClass("PearlLogger"), sel_getUid( "get" ) ), \ sel_getUid( "inFile:atLine:ftl:" ), \ basename( (char *)__FILE__ ), __LINE__, \ CFStringCreateWithCString( NULL, format, kCFStringEncodingUTF8 ), \ ##__VA_ARGS__); abort(); } while (0) #endif