forked from boostorg/preprocessor
Added BOOST_PP_FOR, BOOST_PP_ENUM, BOOST_PP_ENUM_SHIFTED
[SVN r12370]
This commit is contained in:
@ -17,8 +17,8 @@
|
||||
<a href="../../../../boost/preprocessor/enum_params.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/comma_if.hpp>
|
||||
#include <boost/preprocessor/repeat.hpp>
|
||||
#include <boost/preprocessor/cat.hpp>
|
||||
#include <boost/preprocessor/enum.hpp>
|
||||
|
||||
//! Generates a comma separated list of parameters.
|
||||
/*!
|
||||
@ -30,10 +30,10 @@ In other words, expands to the sequence:
|
||||
|
||||
NOTE: The implementation uses BOOST_PP_REPEAT().
|
||||
*/
|
||||
#define BOOST_PP_ENUM_PARAMS(N,P) BOOST_PP_REPEAT(N,BOOST_PP_ENUM_PARAMS_F,P)
|
||||
#define BOOST_PP_ENUM_PARAMS(N,P) BOOST_PP_ENUM(N,BOOST_PP_ENUM_PARAMS_F,P)
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
#define BOOST_PP_ENUM_PARAMS_F(I,P) BOOST_PP_COMMA_IF(I) P##I
|
||||
#define BOOST_PP_ENUM_PARAMS_F(I,P) BOOST_PP_CAT(P,I)
|
||||
#endif
|
||||
|
||||
//! Obsolete. Use BOOST_PP_ENUM_PARAMS().
|
||||
|
Reference in New Issue
Block a user