forked from boostorg/preprocessor
PREPROCESSOR -> PP. WHILE documented.
[SVN r12162]
This commit is contained in:
@ -46,8 +46,8 @@ int c IDENTITY_MACRO(IDENTITY_MACRO(COMMA_TOKEN))() d; // this doesn't
|
||||
macro that does work on MWCW:</p>
|
||||
<blockquote>
|
||||
<pre>#define NUMBERED_EXPRESSION(n, x) \
|
||||
BOOST_PREPROCESSOR_CAT(BOOST_, \
|
||||
BOOST_PREPROCESSOR_IF( \
|
||||
BOOST_PP_CAT(BOOST_, \
|
||||
BOOST_PP_IF( \
|
||||
n \
|
||||
, PREPROCESSOR_IDENTITY(x##n) \
|
||||
, PREPROCESSOR_EMPTY \
|
||||
@ -74,11 +74,11 @@ typedef char yes_type;
|
||||
|
||||
#define IS_FUNCTION_HELPER(I,A)\
|
||||
template\
|
||||
<BOOST_PREPROCESSOR_ENUM_PARAMS(BOOST_PREPROCESSOR_INC(I),class P)>\
|
||||
<BOOST_PP_ENUM_PARAMS(BOOST_PP_INC(I),class P)>\
|
||||
yes_type is_function_helper(\
|
||||
P0 (*)(BOOST_PREPROCESSOR_ENUM_SHIFTED_PARAMS(BOOST_PREPROCESSOR_INC(I),P)));
|
||||
P0 (*)(BOOST_PP_ENUM_SHIFTED_PARAMS(BOOST_PP_INC(I),P)));
|
||||
|
||||
BOOST_PREPROCESSOR_REPEAT_2ND(BOOST_PREPROCESSOR_INC(IS_FUNCTION_HELPER_TEST_MAX),IS_FUNCTION_HELPER,A)
|
||||
BOOST_PP_REPEAT_2ND(BOOST_PP_INC(IS_FUNCTION_HELPER_TEST_MAX),IS_FUNCTION_HELPER,A)
|
||||
|
||||
#undef IS_FUNCTION_HELPER
|
||||
</pre></blockquote>
|
||||
|
Reference in New Issue
Block a user