-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathntpA_Prefix.pch
41 lines (34 loc) · 1.09 KB
/
ntpA_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
//
// Prefix header for all source files of the 'ntpA' target in the 'ntpA' project
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iPhone SDK 5.0 and later."
#endif
#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
#warning "DARWIN_BIG_ENDIAN"
#else
#warning "DARWIN_LITTLE_ENDIAN"
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
#define NTP_Logging(fmt, ...)
#define LogInProduction(fmt, ...) \
NSLog((@"%@|" fmt), [NSString stringWithFormat: @"%24s", \
[[[self class] description] UTF8String]], ##__VA_ARGS__)
#ifdef IOS_NTP_LOGGING
#warning "IOS_NTP_LOGGING enabled"
#undef NTP_Logging
#define NTP_Logging(fmt, ...) \
NSLog((@"%@|" fmt), [NSString stringWithFormat: @"%24s", \
[[[self class] description] UTF8String]], ##__VA_ARGS__)
#endif
#define DEFINE_SHARED_INSTANCE_USING_BLOCK(block) \
static dispatch_once_t pred = 0; \
__strong static id _sharedObject = nil; \
dispatch_once(&pred, ^{ \
_sharedObject = block(); \
}); \
return _sharedObject; \