Chris@16
|
1
|
Chris@16
|
2 #ifndef BOOST_MPL_AUX_PREPROCESSOR_PARAMS_HPP_INCLUDED
|
Chris@16
|
3 #define BOOST_MPL_AUX_PREPROCESSOR_PARAMS_HPP_INCLUDED
|
Chris@16
|
4
|
Chris@16
|
5 // Copyright Aleksey Gurtovoy 2000-2004
|
Chris@16
|
6 //
|
Chris@16
|
7 // Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
8 // (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
9 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
10 //
|
Chris@16
|
11 // See http://www.boost.org/libs/mpl for documentation.
|
Chris@16
|
12
|
Chris@101
|
13 // $Id$
|
Chris@101
|
14 // $Date$
|
Chris@101
|
15 // $Revision$
|
Chris@16
|
16
|
Chris@16
|
17 #include <boost/mpl/aux_/config/preprocessor.hpp>
|
Chris@16
|
18
|
Chris@16
|
19 // BOOST_MPL_PP_PARAMS(0,T): <nothing>
|
Chris@16
|
20 // BOOST_MPL_PP_PARAMS(1,T): T1
|
Chris@16
|
21 // BOOST_MPL_PP_PARAMS(2,T): T1, T2
|
Chris@16
|
22 // BOOST_MPL_PP_PARAMS(n,T): T1, T2, .., Tn
|
Chris@16
|
23
|
Chris@16
|
24 #if !defined(BOOST_MPL_CFG_NO_OWN_PP_PRIMITIVES)
|
Chris@16
|
25
|
Chris@16
|
26 # include <boost/preprocessor/cat.hpp>
|
Chris@16
|
27
|
Chris@16
|
28 # define BOOST_MPL_PP_PARAMS(n,p) \
|
Chris@16
|
29 BOOST_PP_CAT(BOOST_MPL_PP_PARAMS_,n)(p) \
|
Chris@16
|
30 /**/
|
Chris@16
|
31
|
Chris@16
|
32 # define BOOST_MPL_PP_PARAMS_0(p)
|
Chris@16
|
33 # define BOOST_MPL_PP_PARAMS_1(p) p##1
|
Chris@16
|
34 # define BOOST_MPL_PP_PARAMS_2(p) p##1,p##2
|
Chris@16
|
35 # define BOOST_MPL_PP_PARAMS_3(p) p##1,p##2,p##3
|
Chris@16
|
36 # define BOOST_MPL_PP_PARAMS_4(p) p##1,p##2,p##3,p##4
|
Chris@16
|
37 # define BOOST_MPL_PP_PARAMS_5(p) p##1,p##2,p##3,p##4,p##5
|
Chris@16
|
38 # define BOOST_MPL_PP_PARAMS_6(p) p##1,p##2,p##3,p##4,p##5,p##6
|
Chris@16
|
39 # define BOOST_MPL_PP_PARAMS_7(p) p##1,p##2,p##3,p##4,p##5,p##6,p##7
|
Chris@16
|
40 # define BOOST_MPL_PP_PARAMS_8(p) p##1,p##2,p##3,p##4,p##5,p##6,p##7,p##8
|
Chris@16
|
41 # 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
|
Chris@16
|
42
|
Chris@16
|
43 #else
|
Chris@16
|
44
|
Chris@16
|
45 # include <boost/preprocessor/comma_if.hpp>
|
Chris@16
|
46 # include <boost/preprocessor/repeat.hpp>
|
Chris@16
|
47 # include <boost/preprocessor/inc.hpp>
|
Chris@16
|
48 # include <boost/preprocessor/cat.hpp>
|
Chris@16
|
49
|
Chris@16
|
50 # define BOOST_MPL_PP_AUX_PARAM_FUNC(unused, i, param) \
|
Chris@16
|
51 BOOST_PP_COMMA_IF(i) \
|
Chris@16
|
52 BOOST_PP_CAT(param, BOOST_PP_INC(i)) \
|
Chris@16
|
53 /**/
|
Chris@16
|
54
|
Chris@16
|
55 # define BOOST_MPL_PP_PARAMS(n, param) \
|
Chris@16
|
56 BOOST_PP_REPEAT( \
|
Chris@16
|
57 n \
|
Chris@16
|
58 , BOOST_MPL_PP_AUX_PARAM_FUNC \
|
Chris@16
|
59 , param \
|
Chris@16
|
60 ) \
|
Chris@16
|
61 /**/
|
Chris@16
|
62
|
Chris@16
|
63 #endif
|
Chris@16
|
64
|
Chris@16
|
65 #endif // BOOST_MPL_AUX_PREPROCESSOR_PARAMS_HPP_INCLUDED
|