Go to the documentation of this file.
13# ifndef MSGPACK_PREPROCESSOR_CONFIG_CONFIG_HPP
14# define MSGPACK_PREPROCESSOR_CONFIG_CONFIG_HPP
18# define MSGPACK_PP_CONFIG_STRICT() 0x0001
19# define MSGPACK_PP_CONFIG_IDEAL() 0x0002
21# define MSGPACK_PP_CONFIG_MSVC() 0x0004
22# define MSGPACK_PP_CONFIG_MWCC() 0x0008
23# define MSGPACK_PP_CONFIG_BCC() 0x0010
24# define MSGPACK_PP_CONFIG_EDG() 0x0020
25# define MSGPACK_PP_CONFIG_DMC() 0x0040
27# ifndef MSGPACK_PP_CONFIG_FLAGS
28# if defined(__GCCXML__) || defined(__WAVE__) || defined(__MWERKS__) && __MWERKS__ >= 0x3200
29# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_STRICT())
30# elif defined(__EDG__) || defined(__EDG_VERSION__)
31# if defined(_MSC_VER) && !defined(__clang__) && (defined(__INTELLISENSE__) || __EDG_VERSION__ >= 308)
32# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_MSVC())
34# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_EDG() | MSGPACK_PP_CONFIG_STRICT())
36# elif defined(_MSC_VER) && defined(__clang__)
37# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_STRICT())
38# elif defined(__MWERKS__)
39# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_MWCC())
40# elif defined(__DMC__)
41# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_DMC())
42# elif defined(__BORLANDC__) && __BORLANDC__ >= 0x581
43# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_STRICT())
44# elif defined(__BORLANDC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__SUNPRO_CC)
45# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_BCC())
46# elif defined(_MSC_VER)
47# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_MSVC())
49# define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_STRICT())
55# ifndef MSGPACK_PP_CONFIG_EXTENDED_LINE_INFO
56# define MSGPACK_PP_CONFIG_EXTENDED_LINE_INFO 0
61# ifndef MSGPACK_PP_CONFIG_ERRORS
63# define MSGPACK_PP_CONFIG_ERRORS 0
65# define MSGPACK_PP_CONFIG_ERRORS 1
71# define MSGPACK_PP_VARIADICS_MSVC 0
72# if !defined MSGPACK_PP_VARIADICS
74# if defined __GCCXML__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || ( defined __SUNPRO_CC && __SUNPRO_CC < 0x5120 ) || defined __HP_aCC && !defined __EDG__ || defined __MRC__ || defined __SC__ || defined __PGI
75# define MSGPACK_PP_VARIADICS 0
76# elif defined(__CUDACC__)
77# define MSGPACK_PP_VARIADICS 1
78# elif defined(_MSC_VER) && defined(__clang__)
79# define MSGPACK_PP_VARIADICS 1
81# elif defined _MSC_VER && _MSC_VER >= 1400 && (!defined __EDG__ || defined(__INTELLISENSE__) || defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700)
82# define MSGPACK_PP_VARIADICS 1
83# undef MSGPACK_PP_VARIADICS_MSVC
84# define MSGPACK_PP_VARIADICS_MSVC 1
86# elif defined __WAVE__ && __WAVE_HAS_VARIADICS__ || defined __GNUC__ && defined __GXX_EXPERIMENTAL_CXX0X__ && __GXX_EXPERIMENTAL_CXX0X__
87# define MSGPACK_PP_VARIADICS 1
89# elif !defined __cplusplus && __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L
90# define MSGPACK_PP_VARIADICS 1
92# define MSGPACK_PP_VARIADICS 0
94# elif !MSGPACK_PP_VARIADICS + 1 < 2
95# undef MSGPACK_PP_VARIADICS
96# define MSGPACK_PP_VARIADICS 1
97# if defined _MSC_VER && _MSC_VER >= 1400 && !defined(__clang__) && (defined(__INTELLISENSE__) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700) || !(defined __EDG__ || defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI))
98# undef MSGPACK_PP_VARIADICS_MSVC
99# define MSGPACK_PP_VARIADICS_MSVC 1
102# undef MSGPACK_PP_VARIADICS
103# define MSGPACK_PP_VARIADICS 0