 |
Jabber Guest iOS SDK
|
10 #if !defined(__clang__) || __clang_major__ < 3 15 #ifndef __bridge_retain 16 #define __bridge_retain 19 #ifndef __bridge_retained 20 #define __bridge_retained 23 #ifndef __autoreleasing 24 #define __autoreleasing 31 #ifndef __unsafe_unretained 32 #define __unsafe_unretained 40 #if __has_feature(objc_arc) 41 #define SAFE_ARC_PROP_RETAIN strong 42 #define SAFE_ARC_RETAIN(x) (x) 43 #define SAFE_ARC_RELEASE(x) 44 #define SAFE_ARC_AUTORELEASE(x) (x) 45 #define SAFE_ARC_BLOCK_COPY(x) (x) 46 #define SAFE_ARC_BLOCK_RELEASE(x) 47 #define SAFE_ARC_SUPER_DEALLOC() 48 #define SAFE_ARC_AUTORELEASE_POOL_START() @autoreleasepool { 49 #define SAFE_ARC_AUTORELEASE_POOL_END() } 51 #define SAFE_ARC_PROP_RETAIN retain 52 #define SAFE_ARC_RETAIN(x) ([(x) retain]) 53 #define SAFE_ARC_RELEASE(x) ([(x) release]) 54 #define SAFE_ARC_AUTORELEASE(x) ([(x) autorelease]) 55 #define SAFE_ARC_BLOCK_COPY(x) (Block_copy(x)) 56 #define SAFE_ARC_BLOCK_RELEASE(x) (Block_release(x)) 57 #define SAFE_ARC_SUPER_DEALLOC() ([super dealloc]) 58 #define SAFE_ARC_AUTORELEASE_POOL_START() NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 59 #define SAFE_ARC_AUTORELEASE_POOL_END() [pool release];