49 lines
2.4 KiB
C++
49 lines
2.4 KiB
C++
# /* **************************************************************************
|
|
# * *
|
|
# * (C) Copyright Paul Mensonides 2002.
|
|
# * Distributed under the Boost Software License, Version 1.0. (See
|
|
# * accompanying file LICENSE_1_0.txt or copy at
|
|
# * http://www.boost.org/LICENSE_1_0.txt)
|
|
# * *
|
|
# ************************************************************************** */
|
|
#
|
|
# /* See http://www.boost.org for most recent version. */
|
|
#
|
|
# ifndef ACTIV_BOOST_PREPROCESSOR_DETAIL_CHECK_HPP
|
|
# define ACTIV_BOOST_PREPROCESSOR_DETAIL_CHECK_HPP
|
|
#
|
|
# include <ActivBoost/preprocessor/cat.hpp>
|
|
# include <ActivBoost/preprocessor/config/config.hpp>
|
|
#
|
|
# /* ACTIV_BOOST_PP_CHECK */
|
|
#
|
|
# if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_MWCC()
|
|
# define ACTIV_BOOST_PP_CHECK(x, type) ACTIV_BOOST_PP_CHECK_D(x, type)
|
|
# else
|
|
# define ACTIV_BOOST_PP_CHECK(x, type) ACTIV_BOOST_PP_CHECK_OO((x, type))
|
|
# define ACTIV_BOOST_PP_CHECK_OO(par) ACTIV_BOOST_PP_CHECK_D ## par
|
|
# endif
|
|
#
|
|
# if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_MSVC() && ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_DMC()
|
|
# define ACTIV_BOOST_PP_CHECK_D(x, type) ACTIV_BOOST_PP_CHECK_1(ACTIV_BOOST_PP_CAT(ACTIV_BOOST_PP_CHECK_RESULT_, type x))
|
|
# define ACTIV_BOOST_PP_CHECK_1(chk) ACTIV_BOOST_PP_CHECK_2(chk)
|
|
# define ACTIV_BOOST_PP_CHECK_2(res, _) res
|
|
# elif ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_MSVC()
|
|
# define ACTIV_BOOST_PP_CHECK_D(x, type) ACTIV_BOOST_PP_CHECK_1(type x)
|
|
# define ACTIV_BOOST_PP_CHECK_1(chk) ACTIV_BOOST_PP_CHECK_2(chk)
|
|
# define ACTIV_BOOST_PP_CHECK_2(chk) ACTIV_BOOST_PP_CHECK_3((ACTIV_BOOST_PP_CHECK_RESULT_ ## chk))
|
|
# define ACTIV_BOOST_PP_CHECK_3(im) ACTIV_BOOST_PP_CHECK_5(ACTIV_BOOST_PP_CHECK_4 im)
|
|
# define ACTIV_BOOST_PP_CHECK_4(res, _) res
|
|
# define ACTIV_BOOST_PP_CHECK_5(res) res
|
|
# else /* DMC */
|
|
# define ACTIV_BOOST_PP_CHECK_D(x, type) ACTIV_BOOST_PP_CHECK_OO((type x))
|
|
# define ACTIV_BOOST_PP_CHECK_OO(par) ACTIV_BOOST_PP_CHECK_0 ## par
|
|
# define ACTIV_BOOST_PP_CHECK_0(chk) ACTIV_BOOST_PP_CHECK_1(ACTIV_BOOST_PP_CAT(ACTIV_BOOST_PP_CHECK_RESULT_, chk))
|
|
# define ACTIV_BOOST_PP_CHECK_1(chk) ACTIV_BOOST_PP_CHECK_2(chk)
|
|
# define ACTIV_BOOST_PP_CHECK_2(res, _) res
|
|
# endif
|
|
#
|
|
# define ACTIV_BOOST_PP_CHECK_RESULT_1 1, ACTIV_BOOST_PP_NIL
|
|
#
|
|
# endif
|