Added BOOST_PP_FOR, BOOST_PP_ENUM, BOOST_PP_ENUM_SHIFTED

[SVN r12370]
This commit is contained in:
Vesa Karvonen
2002-01-20 16:31:41 +00:00
parent b98a594400
commit e4516ada6a
7 changed files with 281 additions and 20 deletions

View File

@ -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().