Renamed BOOST_PP_IF_THEN to BOOST_PP_EXPR_IF

[SVN r13173]
This commit is contained in:
Vesa Karvonen
2002-03-11 16:11:34 +00:00
parent a3e207e706
commit fcd4b15cdf
12 changed files with 72 additions and 47 deletions

View File

@ -13,7 +13,7 @@
* See http://www.boost.org for most recent version.
*/
#include <boost/preprocessor/if_then.hpp>
#include <boost/preprocessor/expr_if.hpp>
#include <boost/preprocessor/logical/not.hpp>
/** <p>Expands to nothing if <code>C != 0</code> and to <code>MSG</code> if
@ -21,7 +21,7 @@
<p>For example, <code>BOOST_PP_ASSERT_MSG(1,A BUG!)</code> expands to <code>A BUG!</code>.</p>
*/
#define BOOST_PP_ASSERT_MSG(C,MSG) BOOST_PP_IF_THEN(BOOST_PP_NOT(C),MSG)
#define BOOST_PP_ASSERT_MSG(C,MSG) BOOST_PP_EXPR_IF(BOOST_PP_NOT(C),MSG)
/** <p>Obsolete. Use BOOST_PP_ASSERT_MSG().</p> */
#define BOOST_PREPROCESSOR_ASSERT_MSG(C,MSG) BOOST_PP_ASSERT_MSG(C,MSG)