-
Notifications
You must be signed in to change notification settings - Fork 1
/
atvTwo_Prefix.pch
executable file
·50 lines (43 loc) · 1.65 KB
/
atvTwo_Prefix.pch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Prefix header for all source files of the 'atvTwo' target in the 'atvTwo' project.
//
//
//#ifdef __OBJC__
// #import <Cocoa/Cocoa.h>
//#import "theos/include/BackRow/BackRow.h"
//#endif
//
// Prefix header for all source files of the 'atvTwo' target in the 'atvTwo' project.
//
#ifdef __OBJC__
// #import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import "theos/include/BackRow/BackRow.h"
//#import "theos/BackRowDefines.h"
//#import "theos/Extensions.h"
#define CLASS(cls) objc_getClass(#cls)
#ifdef DEBUG
#define __DEBUG__
#endif
#ifdef __DEBUG__
#define CMLog(format, ...) NSLog(@"(%s) in [%s:%d] ::: %@", __PRETTY_FUNCTION__, __FILE__, __LINE__, [NSString stringWithFormat:format, ## __VA_ARGS__])
#define MARK CMLog(@"%s", __PRETTY_FUNCTION__);
#define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
#define END_TIMER(msg) NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start])
#else
#define CMLog(format, ...)
#define MARK
#define START_TIMER
#define END_TIMER(msg)
//#define NSLog(...)
#endif
#define NB [NSBundle mainBundle]
#define UD [NSUserDefaults standardUserDefaults]
#define FM [NSFileManager defaultManager]
#define BRLocalizedString(key, comment) \
[BRLocalizedStringManager appliance:self localizedStringForKey:(key) inFile:nil]
#define BRLocalizedStringFromTable(key, tbl, comment) \
[BRLocalizedStringManager appliance:self localizedStringForKey:(key) inFile:(tbl)]
#define BRLocalizedStringFromTableInBundle(key, tbl, obj, comment) \
[BRLocalizedStringManager appliance:(obj) localizedStringForKey:(key) inFile:(tbl)]
#endif