MessagePack for C
stdcpp.h
Go to the documentation of this file.
1 /*
2 Copyright Rene Rivera 2011-2015
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 */
7 
8 #ifndef MSGPACK_PREDEF_LANGUAGE_STDCPP_H
9 #define MSGPACK_PREDEF_LANGUAGE_STDCPP_H
10 
12 #include <msgpack/predef/make.h>
13 
14 /*`
15 [heading `MSGPACK_LANG_STDCPP`]
16 
17 [@http://en.wikipedia.org/wiki/C%2B%2B Standard C++] language.
18 If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date.
19 Because of the way the C++ standardization process works the
20 defined version year will not be the commonly known year of the standard.
21 Specifically the defined versions are:
22 
23 [table Detected Version Number vs. C++ Standard Year
24  [[Detected Version Number] [Standard Year] [C++ Standard]]
25  [[27.11.1] [1998] [ISO/IEC 14882:1998]]
26  [[41.12.1] [2011] [ISO/IEC 14882:2011]]
27 ]
28 
29 [table
30  [[__predef_symbol__] [__predef_version__]]
31 
32  [[`__cplusplus`] [__predef_detection__]]
33 
34  [[`__cplusplus`] [YYYY.MM.1]]
35  ]
36  */
37 
38 #define MSGPACK_LANG_STDCPP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
39 
40 #if defined(__cplusplus)
41 # undef MSGPACK_LANG_STDCPP
42 # if (__cplusplus > 100)
43 # define MSGPACK_LANG_STDCPP MSGPACK_PREDEF_MAKE_YYYYMM(__cplusplus)
44 # else
45 # define MSGPACK_LANG_STDCPP MSGPACK_VERSION_NUMBER_AVAILABLE
46 # endif
47 #endif
48 
49 #if MSGPACK_LANG_STDCPP
50 # define MSGPACK_LANG_STDCPP_AVAILABLE
51 #endif
52 
53 #define MSGPACK_LANG_STDCPP_NAME "Standard C++"
54 
55 /*`
56 [heading `MSGPACK_LANG_STDCPPCLI`]
57 
58 [@http://en.wikipedia.org/wiki/C%2B%2B/CLI Standard C++/CLI] language.
59 If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date.
60 
61 [table
62  [[__predef_symbol__] [__predef_version__]]
63 
64  [[`__cplusplus_cli`] [__predef_detection__]]
65 
66  [[`__cplusplus_cli`] [YYYY.MM.1]]
67  ]
68  */
69 
70 #define MSGPACK_LANG_STDCPPCLI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
71 
72 #if defined(__cplusplus_cli)
73 # undef MSGPACK_LANG_STDCPPCLI
74 # if (__cplusplus_cli > 100)
75 # define MSGPACK_LANG_STDCPPCLI MSGPACK_PREDEF_MAKE_YYYYMM(__cplusplus_cli)
76 # else
77 # define MSGPACK_LANG_STDCPPCLI MSGPACK_VERSION_NUMBER_AVAILABLE
78 # endif
79 #endif
80 
81 #if MSGPACK_LANG_STDCPPCLI
82 # define MSGPACK_LANG_STDCPPCLI_AVAILABLE
83 #endif
84 
85 #define MSGPACK_LANG_STDCPPCLI_NAME "Standard C++/CLI"
86 
87 /*`
88 [heading `MSGPACK_LANG_STDECPP`]
89 
90 [@http://en.wikipedia.org/wiki/Embedded_C%2B%2B Standard Embedded C++] language.
91 
92 [table
93  [[__predef_symbol__] [__predef_version__]]
94 
95  [[`__embedded_cplusplus`] [__predef_detection__]]
96  ]
97  */
98 
99 #define MSGPACK_LANG_STDECPP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
100 
101 #if defined(__embedded_cplusplus)
102 # undef MSGPACK_LANG_STDECPP
103 # define MSGPACK_LANG_STDECPP MSGPACK_VERSION_NUMBER_AVAILABLE
104 #endif
105 
106 #if MSGPACK_LANG_STDECPP
107 # define MSGPACK_LANG_STDECPP_AVAILABLE
108 #endif
109 
110 #define MSGPACK_LANG_STDECPP_NAME "Standard Embedded C++"
111 
112 #endif
113 
116 
117 #include <msgpack/predef/detail/test.h>
119 
120 #include <msgpack/predef/detail/test.h>
#define MSGPACK_LANG_STDCPP_NAME
Definition: stdcpp.h:53
#define MSGPACK_LANG_STDECPP_NAME
Definition: stdcpp.h:110
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition: test.h:13
#define MSGPACK_LANG_STDCPP
Definition: stdcpp.h:38
#define MSGPACK_LANG_STDECPP
Definition: stdcpp.h:99
#define MSGPACK_LANG_STDCPPCLI_NAME
Definition: stdcpp.h:85
#define MSGPACK_LANG_STDCPPCLI
Definition: stdcpp.h:70