35 lines
1.6 KiB
C++
35 lines
1.6 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_FACILITIES_APPLY_HPP
|
|
# define ACTIV_BOOST_PREPROCESSOR_FACILITIES_APPLY_HPP
|
|
#
|
|
# include <ActivBoost/preprocessor/config/config.hpp>
|
|
# include <ActivBoost/preprocessor/control/expr_iif.hpp>
|
|
# include <ActivBoost/preprocessor/detail/is_unary.hpp>
|
|
# include <ActivBoost/preprocessor/tuple/rem.hpp>
|
|
#
|
|
# /* ACTIV_BOOST_PP_APPLY */
|
|
#
|
|
# if ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG()
|
|
# define ACTIV_BOOST_PP_APPLY(x) ACTIV_BOOST_PP_APPLY_I(x)
|
|
# define ACTIV_BOOST_PP_APPLY_I(x) ACTIV_BOOST_PP_EXPR_IIF(ACTIV_BOOST_PP_IS_UNARY(x), ACTIV_BOOST_PP_TUPLE_REM_1 x)
|
|
# elif ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_BCC()
|
|
# define ACTIV_BOOST_PP_APPLY(x) ACTIV_BOOST_PP_APPLY_I(x)
|
|
# define ACTIV_BOOST_PP_APPLY_I(x) ACTIV_BOOST_PP_APPLY_ ## x
|
|
# define ACTIV_BOOST_PP_APPLY_(x) x
|
|
# define ACTIV_BOOST_PP_APPLY_ACTIV_BOOST_PP_NIL
|
|
# else
|
|
# define ACTIV_BOOST_PP_APPLY(x) ACTIV_BOOST_PP_EXPR_IIF(ACTIV_BOOST_PP_IS_UNARY(x), ACTIV_BOOST_PP_TUPLE_REM_1 x)
|
|
# endif
|
|
#
|
|
# endif
|