1 # /* Copyright (C) 2001
\r
3 # * http://www.housemarque.com
\r
5 # * Distributed under the Boost Software License, Version 1.0. (See
\r
6 # * accompanying file LICENSE_1_0.txt or copy at
\r
7 # * http://www.boost.org/LICENSE_1_0.txt)
\r
10 # /* Revised by Paul Mensonides (2002) */
\r
12 # /* See http://www.boost.org for most recent version. */
\r
14 # ifndef BOOST_PREPROCESSOR_REPETITION_ENUM_SHIFTED_PARAMS_HPP
\r
15 # define BOOST_PREPROCESSOR_REPETITION_ENUM_SHIFTED_PARAMS_HPP
\r
17 # include <boost/preprocessor/arithmetic/dec.hpp>
\r
18 # include <boost/preprocessor/arithmetic/inc.hpp>
\r
19 # include <boost/preprocessor/cat.hpp>
\r
20 # include <boost/preprocessor/config/config.hpp>
\r
21 # include <boost/preprocessor/punctuation/comma_if.hpp>
\r
22 # include <boost/preprocessor/repetition/repeat.hpp>
\r
24 # /* BOOST_PP_ENUM_SHIFTED_PARAMS */
\r
26 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
\r
27 # define BOOST_PP_ENUM_SHIFTED_PARAMS(count, param) BOOST_PP_REPEAT(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
\r
29 # define BOOST_PP_ENUM_SHIFTED_PARAMS(count, param) BOOST_PP_ENUM_SHIFTED_PARAMS_I(count, param)
\r
30 # define BOOST_PP_ENUM_SHIFTED_PARAMS_I(count, param) BOOST_PP_REPEAT(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
\r
33 # define BOOST_PP_ENUM_SHIFTED_PARAMS_M(z, n, param) BOOST_PP_COMMA_IF(n) BOOST_PP_CAT(param, BOOST_PP_INC(n))
\r
35 # /* BOOST_PP_ENUM_SHIFTED_PARAMS_Z */
\r
37 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
\r
38 # define BOOST_PP_ENUM_SHIFTED_PARAMS_Z(z, count, param) BOOST_PP_REPEAT_ ## z(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
\r
40 # define BOOST_PP_ENUM_SHIFTED_PARAMS_Z(z, count, param) BOOST_PP_ENUM_SHIFTED_PARAMS_Z_I(z, count, param)
\r
41 # define BOOST_PP_ENUM_SHIFTED_PARAMS_Z_I(z, count, param) BOOST_PP_REPEAT_ ## z(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
\r