File indexing completed on 2025-01-18 09:41:37
0001
0002 #ifndef BOOST_MPL_AUX_PREPROCESSOR_ENUM_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_ENUM_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_ENUM(n, param) \
0029 BOOST_PP_CAT(BOOST_MPL_PP_ENUM_,n)(param) \
0030
0031
0032 # define BOOST_MPL_PP_ENUM_Z(z_ignored, n, param) \
0033 BOOST_PP_CAT(BOOST_MPL_PP_ENUM_,n)(param) \
0034
0035
0036 # define BOOST_MPL_PP_ENUM_0(p)
0037 # define BOOST_MPL_PP_ENUM_1(p) p
0038 # define BOOST_MPL_PP_ENUM_2(p) p,p
0039 # define BOOST_MPL_PP_ENUM_3(p) p,p,p
0040 # define BOOST_MPL_PP_ENUM_4(p) p,p,p,p
0041 # define BOOST_MPL_PP_ENUM_5(p) p,p,p,p,p
0042 # define BOOST_MPL_PP_ENUM_6(p) p,p,p,p,p,p
0043 # define BOOST_MPL_PP_ENUM_7(p) p,p,p,p,p,p,p
0044 # define BOOST_MPL_PP_ENUM_8(p) p,p,p,p,p,p,p,p
0045 # define BOOST_MPL_PP_ENUM_9(p) p,p,p,p,p,p,p,p,p
0046
0047 #else
0048
0049 # include <boost/preprocessor/comma_if.hpp>
0050 # include <boost/preprocessor/repeat.hpp>
0051
0052 # define BOOST_MPL_PP_AUX_ENUM_FUNC(unused, i, param) \
0053 BOOST_PP_COMMA_IF(i) param \
0054
0055
0056 # define BOOST_MPL_PP_ENUM(n, param) \
0057 BOOST_PP_REPEAT( \
0058 n \
0059 , BOOST_MPL_PP_AUX_ENUM_FUNC \
0060 , param \
0061 ) \
0062
0063
0064 # define BOOST_MPL_PP_ENUM_Z(z, n, param) \
0065 BOOST_PP_REPEAT_ ## z( \
0066 n \
0067 , BOOST_MPL_PP_AUX_ENUM_FUNC \
0068 , param \
0069 ) \
0070
0071
0072 #endif
0073
0074 #endif