Go to the documentation of this file.
12 # ifndef MSGPACK_PREPROCESSOR_DETAIL_CHECK_HPP
13 # define MSGPACK_PREPROCESSOR_DETAIL_CHECK_HPP
20 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MWCC()
21 # define MSGPACK_PP_CHECK(x, type) MSGPACK_PP_CHECK_D(x, type)
23 # define MSGPACK_PP_CHECK(x, type) MSGPACK_PP_CHECK_OO((x, type))
24 # define MSGPACK_PP_CHECK_OO(par) MSGPACK_PP_CHECK_D ## par
27 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MSVC() && ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_DMC()
28 # define MSGPACK_PP_CHECK_D(x, type) MSGPACK_PP_CHECK_1(MSGPACK_PP_CAT(MSGPACK_PP_CHECK_RESULT_, type x))
29 # define MSGPACK_PP_CHECK_1(chk) MSGPACK_PP_CHECK_2(chk)
30 # define MSGPACK_PP_CHECK_2(res, _) res
31 # elif MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MSVC()
32 # define MSGPACK_PP_CHECK_D(x, type) MSGPACK_PP_CHECK_1(type x)
33 # define MSGPACK_PP_CHECK_1(chk) MSGPACK_PP_CHECK_2(chk)
34 # define MSGPACK_PP_CHECK_2(chk) MSGPACK_PP_CHECK_3((MSGPACK_PP_CHECK_RESULT_ ## chk))
35 # define MSGPACK_PP_CHECK_3(im) MSGPACK_PP_CHECK_5(MSGPACK_PP_CHECK_4 im)
36 # define MSGPACK_PP_CHECK_4(res, _) res
37 # define MSGPACK_PP_CHECK_5(res) res
39 # define MSGPACK_PP_CHECK_D(x, type) MSGPACK_PP_CHECK_OO((type x))
40 # define MSGPACK_PP_CHECK_OO(par) MSGPACK_PP_CHECK_0 ## par
41 # define MSGPACK_PP_CHECK_0(chk) MSGPACK_PP_CHECK_1(MSGPACK_PP_CAT(MSGPACK_PP_CHECK_RESULT_, chk))
42 # define MSGPACK_PP_CHECK_1(chk) MSGPACK_PP_CHECK_2(chk)
43 # define MSGPACK_PP_CHECK_2(res, _) res
46 # define MSGPACK_PP_CHECK_RESULT_1 1, MSGPACK_PP_NIL