MessagePack for C
ios.h
Go to the documentation of this file.
1 /*
2 Copyright Ruslan Baratov 2017
3 Copyright Rene Rivera 2017
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
7 */
8 
9 #ifndef MSGPACK_PREDEF_PLAT_IOS_H
10 #define MSGPACK_PREDEF_PLAT_IOS_H
11 
12 #include <msgpack/predef/os/ios.h> // MSGPACK_OS_IOS
13 #include <msgpack/predef/version_number.h> // MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
14 
15 /*`
16 [heading `MSGPACK_PLAT_IOS_DEVICE`]
17 [heading `MSGPACK_PLAT_IOS_SIMULATOR`]
18 
19 [table
20  [[__predef_symbol__] [__predef_version__]]
21 
22  [[`TARGET_IPHONE_SIMULATOR`] [__predef_detection__]]
23  ]
24  */
25 
26 #define MSGPACK_PLAT_IOS_DEVICE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
27 #define MSGPACK_PLAT_IOS_SIMULATOR MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
28 
29 // https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h
30 #if MSGPACK_OS_IOS
31 # include <TargetConditionals.h>
32 # if TARGET_IPHONE_SIMULATOR == 1
33 # undef MSGPACK_PLAT_IOS_SIMULATOR
34 # define MSGPACK_PLAT_IOS_SIMULATOR MSGPACK_VERSION_NUMBER_AVAILABLE
35 # else
36 # undef MSGPACK_PLAT_IOS_DEVICE
37 # define MSGPACK_PLAT_IOS_DEVICE MSGPACK_VERSION_NUMBER_AVAILABLE
38 # endif
39 #endif
40 
41 #if MSGPACK_PLAT_IOS_SIMULATOR
42 # define MSGPACK_PLAT_IOS_SIMULATOR_AVAILABLE
44 #endif
45 
46 #if MSGPACK_PLAT_IOS_DEVICE
47 # define MSGPACK_PLAT_IOS_DEVICE_AVAILABLE
49 #endif
50 
51 #define MSGPACK_PLAT_IOS_SIMULATOR_NAME "iOS Simulator"
52 #define MSGPACK_PLAT_IOS_DEVICE_NAME "iOS Device"
53 
54 #endif // MSGPACK_PREDEF_PLAT_IOS_H
55 
ios.h
version_number.h
MSGPACK_PLAT_IOS_DEVICE_NAME
#define MSGPACK_PLAT_IOS_DEVICE_NAME
Definition: ios.h:52
MSGPACK_PLAT_IOS_DEVICE
#define MSGPACK_PLAT_IOS_DEVICE
Definition: ios.h:26
test.h
MSGPACK_PLAT_IOS_SIMULATOR_NAME
#define MSGPACK_PLAT_IOS_SIMULATOR_NAME
Definition: ios.h:51
MSGPACK_PREDEF_DECLARE_TEST
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition: test.h:13
MSGPACK_PLAT_IOS_SIMULATOR
#define MSGPACK_PLAT_IOS_SIMULATOR
Definition: ios.h:27
platform_detected.h