diff --git a/include/boost/preprocessor/expr_if.hpp b/include/boost/preprocessor/expr_if.hpp index be893a0..4bf77cb 100644 --- a/include/boost/preprocessor/expr_if.hpp +++ b/include/boost/preprocessor/expr_if.hpp @@ -13,9 +13,6 @@ * See http://www.boost.org for most recent version. */ -// pm: not necessary if using manual delay -// #include - #include /**

Expands to EXPR if COND != 0 and to nothing if COND == 0.

diff --git a/include/boost/preprocessor/if.hpp b/include/boost/preprocessor/if.hpp index 6f90104..0ade099 100644 --- a/include/boost/preprocessor/if.hpp +++ b/include/boost/preprocessor/if.hpp @@ -13,9 +13,6 @@ * See http://www.boost.org for most recent version. */ -// pm: not necessary if using manual delay -// #include - #include /**

Expands to THEN if COND != 0 and ELSE if @@ -35,11 +32,11 @@

  • preprocessor_test.cpp
  • */ -#define BOOST_PP_IF(COND,THEN,ELSE) BOOST_PP_IF_BOOL(BOOST_PP_BOOL(COND),THEN,ELSE) /* original: BOOST_PP_DETAIL_CAT2(BOOST_PP_IF,BOOST_PP_BOOL(COND))(ELSE,THEN) */ +#define BOOST_PP_IF(COND,THEN,ELSE) BOOST_PP_IF_BOOL(BOOST_PP_BOOL(COND),ELSE,THEN) -#define BOOST_PP_IF_BOOL(COND,THEN,ELSE) BOOST_PP_IF_BOOL_DELAY(COND,THEN,ELSE) -#define BOOST_PP_IF_BOOL_DELAY(COND,THEN,ELSE) BOOST_PP_IF##COND(THEN,ELSE) +#define BOOST_PP_IF_BOOL(C,E,T) BOOST_PP_IF_BOOL_DELAY(C,E,T) +#define BOOST_PP_IF_BOOL_DELAY(C,E,T) BOOST_PP_IF##C(E,T) -#define BOOST_PP_IF0(T,E) E // BOOST_PP_IF0(E,T) E -#define BOOST_PP_IF1(T,E) T // BOOST_PP_IF1(E,T) T +#define BOOST_PP_IF0(E,T) E +#define BOOST_PP_IF1(E,T) T #endif