forked from Sage-Bionetworks/Bridge-iOS-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRNCryptor+Namespace.h
38 lines (29 loc) · 902 Bytes
/
RNCryptor+Namespace.h
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
// Namespaced Header
#ifndef __NS_SYMBOL
// We need to have multiple levels of macros here so that __NAMESPACE_PREFIX_ is
// properly replaced by the time we concatenate the namespace prefix.
#define __NS_REWRITE(ns, symbol) ns ## _ ## symbol
#define __NS_BRIDGE(ns, symbol) __NS_REWRITE(ns, symbol)
#define __NS_SYMBOL(symbol) __NS_BRIDGE(SBB, symbol)
#endif
// Classes
#ifndef RNCryptor
#define RNCryptor __NS_SYMBOL(RNCryptor)
#endif
#ifndef RNCryptorEngine
#define RNCryptorEngine __NS_SYMBOL(RNCryptorEngine)
#endif
#ifndef RNDecryptor
#define RNDecryptor __NS_SYMBOL(RNDecryptor)
#endif
#ifndef RNEncryptor
#define RNEncryptor __NS_SYMBOL(RNEncryptor)
#endif
// Functions
// Externs
#ifndef kRNCryptorErrorDomain
#define kRNCryptorErrorDomain __NS_SYMBOL(kRNCryptorErrorDomain)
#endif
#ifndef kRNCryptorFileVersion
#define kRNCryptorFileVersion __NS_SYMBOL(kRNCryptorFileVersion)
#endif