File indexing completed on 2025-01-18 09:48:23
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 # ifndef BOOST_PREPROCESSOR_DETAIL_CHECK_HPP
0013 # define BOOST_PREPROCESSOR_DETAIL_CHECK_HPP
0014 #
0015 # include <boost/preprocessor/cat.hpp>
0016 # include <boost/preprocessor/config/config.hpp>
0017 #
0018 #
0019 #
0020 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0021 # define BOOST_PP_CHECK(x, type) BOOST_PP_CHECK_D(x, type)
0022 # else
0023 # define BOOST_PP_CHECK(x, type) BOOST_PP_CHECK_OO((x, type))
0024 # define BOOST_PP_CHECK_OO(par) BOOST_PP_CHECK_D ## par
0025 # endif
0026 #
0027 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC() && ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_DMC()
0028 # define BOOST_PP_CHECK_D(x, type) BOOST_PP_CHECK_1(BOOST_PP_CAT(BOOST_PP_CHECK_RESULT_, type x))
0029 # define BOOST_PP_CHECK_1(chk) BOOST_PP_CHECK_2(chk)
0030 # define BOOST_PP_CHECK_2(res, _) res
0031 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
0032 # define BOOST_PP_CHECK_D(x, type) BOOST_PP_CHECK_1(type x)
0033 # define BOOST_PP_CHECK_1(chk) BOOST_PP_CHECK_2(chk)
0034 # define BOOST_PP_CHECK_2(chk) BOOST_PP_CHECK_3((BOOST_PP_CHECK_RESULT_ ## chk))
0035 # define BOOST_PP_CHECK_3(im) BOOST_PP_CHECK_5(BOOST_PP_CHECK_4 im)
0036 # define BOOST_PP_CHECK_4(res, _) res
0037 # define BOOST_PP_CHECK_5(res) res
0038 # else
0039 # define BOOST_PP_CHECK_D(x, type) BOOST_PP_CHECK_OO((type x))
0040 # define BOOST_PP_CHECK_OO(par) BOOST_PP_CHECK_0 ## par
0041 # define BOOST_PP_CHECK_0(chk) BOOST_PP_CHECK_1(BOOST_PP_CAT(BOOST_PP_CHECK_RESULT_, chk))
0042 # define BOOST_PP_CHECK_1(chk) BOOST_PP_CHECK_2(chk)
0043 # define BOOST_PP_CHECK_2(res, _) res
0044 # endif
0045 #
0046 # define BOOST_PP_CHECK_RESULT_1 1, BOOST_PP_NIL
0047 #
0048 # endif