3 <title>BOOST_PP_ASSERT_MSG
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_ASSERT_MSG
</b> macro conditionally inserts debugging text.
12 <b>BOOST_PP_ASSERT_MSG
</b>(
<i>cond
</i>,
<i>msg
</i>)
18 A condition that determines whether an assertion occurs.
19 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_MAG
</b>.
23 A message to display if
<i>cond
</i> evaluates to
<i>0</i>.
28 If
<i>cond
</i> expands to
<i>0</i>, this macro expands to
<i>msg
</i>.
29 Otherwise, it expands to nothing.
33 <li><a href=
"assert_msg.html">BOOST_PP_ASSERT_MSG
</a></li>
34 <li><a href=
"limit_mag.html">BOOST_PP_LIMIT_MAG
</a></li>
38 <b>Header:
</b> <a href=
"../headers/debug/assert.html"><boost/preprocessor/debug/assert.hpp
></a>
42 #include
<<a href=
"../headers/comparison/equal.html">boost/preprocessor/comparison/equal.hpp
</a>>
43 #include
<<a href=
"../headers/debug/assert.html">boost/preprocessor/debug/assert.hpp
</a>>
45 // lines are supposed to be counted
46 // in translation phase
1
49 <a href=
"assert_msg.html">BOOST_PP_ASSERT_MSG
</a>( \
50 BOOST_PP_EQUAL(__LINE__,
9), \
51 "incorrect line numbering detected" \
55 <div style=
"margin-left: 0px;">
56 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
57 </br><i>© Copyright Paul Mensonides
2002</i>
59 <div style=
"margin-left: 0px;">
60 <p><small>Distributed under the Boost Software License, Version
1.0. (See
61 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
63 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>