author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
# /* ************************************************************************** |
williamr@2 | 2 |
# * * |
williamr@2 | 3 |
# * (C) Copyright Paul Mensonides 2002. |
williamr@2 | 4 |
# * Distributed under the Boost Software License, Version 1.0. (See |
williamr@2 | 5 |
# * accompanying file LICENSE_1_0.txt or copy at |
williamr@2 | 6 |
# * http://www.boost.org/LICENSE_1_0.txt) |
williamr@2 | 7 |
# * * |
williamr@2 | 8 |
# ************************************************************************** */ |
williamr@2 | 9 |
# |
williamr@2 | 10 |
# /* See http://www.boost.org for most recent version. */ |
williamr@2 | 11 |
# |
williamr@2 | 12 |
# ifndef BOOST_PREPROCESSOR_FACILITIES_APPLY_HPP |
williamr@2 | 13 |
# define BOOST_PREPROCESSOR_FACILITIES_APPLY_HPP |
williamr@2 | 14 |
# |
williamr@2 | 15 |
# include <boost/preprocessor/config/config.hpp> |
williamr@2 | 16 |
# include <boost/preprocessor/control/expr_iif.hpp> |
williamr@2 | 17 |
# include <boost/preprocessor/detail/is_unary.hpp> |
williamr@2 | 18 |
# include <boost/preprocessor/tuple/rem.hpp> |
williamr@2 | 19 |
# |
williamr@2 | 20 |
# /* BOOST_PP_APPLY */ |
williamr@2 | 21 |
# |
williamr@2 | 22 |
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG() |
williamr@2 | 23 |
# define BOOST_PP_APPLY(x) BOOST_PP_APPLY_I(x) |
williamr@2 | 24 |
# define BOOST_PP_APPLY_I(x) BOOST_PP_EXPR_IIF(BOOST_PP_IS_UNARY(x), BOOST_PP_TUPLE_REM_1 x) |
williamr@2 | 25 |
# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_BCC() |
williamr@2 | 26 |
# define BOOST_PP_APPLY(x) BOOST_PP_APPLY_I(x) |
williamr@2 | 27 |
# define BOOST_PP_APPLY_I(x) BOOST_PP_APPLY_ ## x |
williamr@2 | 28 |
# define BOOST_PP_APPLY_(x) x |
williamr@2 | 29 |
# define BOOST_PP_APPLY_BOOST_PP_NIL |
williamr@2 | 30 |
# else |
williamr@2 | 31 |
# define BOOST_PP_APPLY(x) BOOST_PP_EXPR_IIF(BOOST_PP_IS_UNARY(x), BOOST_PP_TUPLE_REM_1 x) |
williamr@2 | 32 |
# endif |
williamr@2 | 33 |
# |
williamr@2 | 34 |
# endif |