File indexing completed on 2025-01-18 09:41:37
0001
0002 #ifndef BOOST_MPL_AUX_PREPROCESSOR_PARAMS_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_PARAMS_HPP_INCLUDED
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/mpl/aux_/config/preprocessor.hpp>
0018
0019
0020
0021
0022
0023
0024 #if !defined(BOOST_MPL_CFG_NO_OWN_PP_PRIMITIVES)
0025
0026 # include <boost/preprocessor/cat.hpp>
0027
0028 # define BOOST_MPL_PP_PARAMS(n,p) \
0029 BOOST_PP_CAT(BOOST_MPL_PP_PARAMS_,n)(p) \
0030
0031
0032 # define BOOST_MPL_PP_PARAMS_Z(z_ignored,n,p) \
0033 BOOST_PP_CAT(BOOST_MPL_PP_PARAMS_,n)(p) \
0034
0035
0036 # define BOOST_MPL_PP_PARAMS_0(p)
0037 # define BOOST_MPL_PP_PARAMS_1(p) p##1
0038 # define BOOST_MPL_PP_PARAMS_2(p) p##1,p##2
0039 # define BOOST_MPL_PP_PARAMS_3(p) p##1,p##2,p##3
0040 # define BOOST_MPL_PP_PARAMS_4(p) p##1,p##2,p##3,p##4
0041 # define BOOST_MPL_PP_PARAMS_5(p) p##1,p##2,p##3,p##4,p##5
0042 # define BOOST_MPL_PP_PARAMS_6(p) p##1,p##2,p##3,p##4,p##5,p##6
0043 # define BOOST_MPL_PP_PARAMS_7(p) p##1,p##2,p##3,p##4,p##5,p##6,p##7
0044 # define BOOST_MPL_PP_PARAMS_8(p) p##1,p##2,p##3,p##4,p##5,p##6,p##7,p##8
0045 # define BOOST_MPL_PP_PARAMS_9(p) p##1,p##2,p##3,p##4,p##5,p##6,p##7,p##8,p##9
0046
0047 #else
0048
0049 # include <boost/preprocessor/comma_if.hpp>
0050 # include <boost/preprocessor/repeat.hpp>
0051 # include <boost/preprocessor/inc.hpp>
0052 # include <boost/preprocessor/cat.hpp>
0053
0054 # define BOOST_MPL_PP_AUX_PARAM_FUNC(unused, i, param) \
0055 BOOST_PP_COMMA_IF(i) \
0056 BOOST_PP_CAT(param, BOOST_PP_INC(i)) \
0057
0058
0059 # define BOOST_MPL_PP_PARAMS(n, param) \
0060 BOOST_PP_REPEAT( \
0061 n \
0062 , BOOST_MPL_PP_AUX_PARAM_FUNC \
0063 , param \
0064 ) \
0065
0066
0067 # define BOOST_MPL_PP_PARAMS_Z(z, n, param) \
0068 BOOST_PP_REPEAT_ ## z( \
0069 n \
0070 , BOOST_MPL_PP_AUX_PARAM_FUNC \
0071 , param \
0072 ) \
0073
0074
0075 #endif
0076
0077 #endif