2012-03-04 14:31:26 +00:00
|
|
|
//
|
|
|
|
// Prefix header for all source files of the 'MasterPassword' target in the 'MasterPassword' project
|
|
|
|
//
|
|
|
|
|
2015-09-23 04:31:33 +00:00
|
|
|
#import <Availability.h>
|
2014-12-31 16:28:46 +00:00
|
|
|
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8
|
2015-09-23 04:31:33 +00:00
|
|
|
#warning "This project uses features only available in Mac OS X 10.8 and later."
|
2014-12-31 16:28:46 +00:00
|
|
|
#endif
|
|
|
|
|
2012-10-31 02:54:34 +00:00
|
|
|
#import "Pearl-Prefix.pch"
|
2012-06-08 21:46:13 +00:00
|
|
|
|
2012-10-31 02:54:34 +00:00
|
|
|
#ifdef __OBJC__
|
2012-03-04 14:31:26 +00:00
|
|
|
|
2012-10-31 02:54:34 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <CoreData/CoreData.h>
|
2012-03-04 14:31:26 +00:00
|
|
|
|
2014-12-31 16:28:46 +00:00
|
|
|
#ifdef CRASHLYTICS
|
2015-09-23 04:31:33 +00:00
|
|
|
#import <Crashlytics/Crashlytics.h>
|
2014-12-31 16:28:46 +00:00
|
|
|
#endif
|
|
|
|
|
2012-03-04 14:31:26 +00:00
|
|
|
#import "MPTypes.h"
|
2012-10-31 02:54:34 +00:00
|
|
|
#import "MPMacConfig.h"
|
|
|
|
|
2015-09-23 04:31:33 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
#import <libgen.h>
|
|
|
|
#import <CoreFoundation/CFString.h>
|
|
|
|
#import <objc/runtime.h>
|
|
|
|
#import <objc/message.h>
|
|
|
|
|
|
|
|
#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)
|
|
|
|
|
2012-10-31 02:54:34 +00:00
|
|
|
#endif
|