Couchbase Lite
Objective-C API for iOS and Mac OS
CBLBase.h
Go to the documentation of this file.
1 //
2 // CBLBase.h
3 // CouchbaseLite
4 //
5 // Created by Jens Alfke on 6/9/15.
6 // Copyright © 2015 Couchbase, Inc. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 
12 #if __has_feature(nullability)
13 # ifndef NS_ASSUME_NONNULL_BEGIN
14  // Xcode 6.3:
15 # define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
16 # define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
17 # endif
18 #else
19  // Xcode 6.2 and earlier:
20 # define NS_ASSUME_NONNULL_BEGIN
21 # define NS_ASSUME_NONNULL_END
22 # define nullable
23 # define __nullable
24 #endif
25 
26 
27 #if __has_feature(objc_generics)
28 #define CBLArrayOf(VALUE) NSArray<VALUE>
29 #define CBLDictOf(KEY, VALUE) NSDictionary<KEY, VALUE>
30 #define CBLEnumeratorOf(VALUE) NSEnumerator<VALUE>
31 #else
32 #define CBLArrayOf(VALUE) NSArray
33 #define CBLDictOf(KEY, VALUE) NSDictionary
34 #define CBLEnumeratorOf(VALUE) NSEnumerator
35 #endif
36 
37 typedef CBLDictOf(NSString*, id) CBLJSONDict;
#define CBLDictOf(KEY, VALUE)
Definition: CBLBase.h:33