1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/preprocessor/repetition/enum_binary_params.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,54 @@
1.4 +# /* **************************************************************************
1.5 +# * *
1.6 +# * (C) Copyright Paul Mensonides 2002.
1.7 +# * Distributed under the Boost Software License, Version 1.0. (See
1.8 +# * accompanying file LICENSE_1_0.txt or copy at
1.9 +# * http://www.boost.org/LICENSE_1_0.txt)
1.10 +# * *
1.11 +# ************************************************************************** */
1.12 +#
1.13 +# /* See http://www.boost.org for most recent version. */
1.14 +#
1.15 +# ifndef BOOST_PREPROCESSOR_REPETITION_ENUM_BINARY_PARAMS_HPP
1.16 +# define BOOST_PREPROCESSOR_REPETITION_ENUM_BINARY_PARAMS_HPP
1.17 +#
1.18 +# include <boost/preprocessor/cat.hpp>
1.19 +# include <boost/preprocessor/config/config.hpp>
1.20 +# include <boost/preprocessor/punctuation/comma_if.hpp>
1.21 +# include <boost/preprocessor/repetition/repeat.hpp>
1.22 +# include <boost/preprocessor/tuple/elem.hpp>
1.23 +# include <boost/preprocessor/tuple/rem.hpp>
1.24 +#
1.25 +# /* BOOST_PP_ENUM_BINARY_PARAMS */
1.26 +#
1.27 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.28 +# define BOOST_PP_ENUM_BINARY_PARAMS(count, p1, p2) BOOST_PP_REPEAT(count, BOOST_PP_ENUM_BINARY_PARAMS_M, (p1, p2))
1.29 +# else
1.30 +# define BOOST_PP_ENUM_BINARY_PARAMS(count, p1, p2) BOOST_PP_ENUM_BINARY_PARAMS_I(count, p1, p2)
1.31 +# define BOOST_PP_ENUM_BINARY_PARAMS_I(count, p1, p2) BOOST_PP_REPEAT(count, BOOST_PP_ENUM_BINARY_PARAMS_M, (p1, p2))
1.32 +# endif
1.33 +#
1.34 +# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
1.35 +# define BOOST_PP_ENUM_BINARY_PARAMS_M(z, n, pp) BOOST_PP_ENUM_BINARY_PARAMS_M_IM(z, n, BOOST_PP_TUPLE_REM_2 pp)
1.36 +# define BOOST_PP_ENUM_BINARY_PARAMS_M_IM(z, n, im) BOOST_PP_ENUM_BINARY_PARAMS_M_I(z, n, im)
1.37 +# else
1.38 +# define BOOST_PP_ENUM_BINARY_PARAMS_M(z, n, pp) BOOST_PP_ENUM_BINARY_PARAMS_M_I(z, n, BOOST_PP_TUPLE_ELEM(2, 0, pp), BOOST_PP_TUPLE_ELEM(2, 1, pp))
1.39 +# endif
1.40 +#
1.41 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
1.42 +# define BOOST_PP_ENUM_BINARY_PARAMS_M_I(z, n, p1, p2) BOOST_PP_ENUM_BINARY_PARAMS_M_II(z, n, p1, p2)
1.43 +# define BOOST_PP_ENUM_BINARY_PARAMS_M_II(z, n, p1, p2) BOOST_PP_COMMA_IF(n) p1 ## n p2 ## n
1.44 +# else
1.45 +# define BOOST_PP_ENUM_BINARY_PARAMS_M_I(z, n, p1, p2) BOOST_PP_COMMA_IF(n) BOOST_PP_CAT(p1, n) BOOST_PP_CAT(p2, n)
1.46 +# endif
1.47 +#
1.48 +# /* BOOST_PP_ENUM_BINARY_PARAMS_Z */
1.49 +#
1.50 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.51 +# define BOOST_PP_ENUM_BINARY_PARAMS_Z(z, count, p1, p2) BOOST_PP_REPEAT_ ## z(count, BOOST_PP_ENUM_BINARY_PARAMS_M, (p1, p2))
1.52 +# else
1.53 +# define BOOST_PP_ENUM_BINARY_PARAMS_Z(z, count, p1, p2) BOOST_PP_ENUM_BINARY_PARAMS_Z_I(z, count, p1, p2)
1.54 +# define BOOST_PP_ENUM_BINARY_PARAMS_Z_I(z, count, p1, p2) BOOST_PP_REPEAT_ ## z(count, BOOST_PP_ENUM_BINARY_PARAMS_M, (p1, p2))
1.55 +# endif
1.56 +#
1.57 +# endif