-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCBUIKit_Prefix.pch
28 lines (23 loc) · 1.02 KB
/
CBUIKit_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
//
// Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
//
#ifdef __OBJC__
// loglevel: 0 = none, 1 = debug, 2 = info, 3 = warning, 4 = error
#if CBUI_LOGLEVEL >= 2
#define ILog(...) NSLog(__VA_ARGS__)
#else
#define ILog(...) /* */
#endif
#if CBUI_LOGLEVEL >= 1
#define DLog(...) NSLog(@"%s(%x) %@", __PRETTY_FUNCTION__, (NSUInteger)self, [NSString stringWithFormat:__VA_ARGS__])
#define ALog(...) [[NSAssertionHandler currentHandler] handleFailureInFunction:[NSString stringWithCString:__PRETTY_FUNCTION__ encoding:NSUTF8StringEncoding] file:[NSString stringWithCString:__FILE__ encoding:NSUTF8StringEncoding] lineNumber:__LINE__ description:__VA_ARGS__]
#else
#define DLog(...) do {} while(0)
#ifndef NS_BLOCK_ASSERTIONS
#define NS_BLOCK_ASSERTIONS
#endif
#define ALog(...) NSLog(@"%s(%x) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])
#endif
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#endif