3 <title>BOOST_PP_RPAREN_IF
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_RPAREN_IF
</b> macro conditionally expands to a right parenthesis.
12 <b>BOOST_PP_RPAREN_IF
</b>(
<i>cond
</i>)
18 The condition that determines if a the macro expands to a right parenthesis or nothing.
19 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_MAG
</b>.
24 If
<i>cond
</i> expands to
<i>0</i>, this macro expands to nothing.
25 Otherwise, it expands to a right parenthesis.
28 The preprocessor interprets parentheses as delimiters in macro invocations.
29 Because of this, parentheses require special handling.
33 <li><a href=
"limit_mag.html">BOOST_PP_LIMIT_MAG
</a></li>
34 <li><a href=
"lparen_if.html">BOOST_PP_LPAREN_IF
</a></li>
38 <b>Header:
</b> <a href=
"../headers/punctuation/paren_if.html"><boost/preprocessor/punctuation/paren_if.hpp
></a>
42 #include
<<a href=
"../headers/punctuation/paren_if.html">boost/preprocessor/punctuation/paren_if.hpp
</a>>
44 #define MACRO(c, x)
<a href=
"lparen_if.html">BOOST_PP_LPAREN_IF
</a>(c) x
<a href=
"rparen_if.html">BOOST_PP_RPAREN_IF
</a>(c)
46 MACRO(
0, text) // expands to text
47 MACRO(
1, text) // expands to (text)
50 <div style=
"margin-left: 0px;">
51 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
52 </br><i>© Copyright Paul Mensonides
2002</i>
54 <div style=
"margin-left: 0px;">
55 <p><small>Distributed under the Boost Software License, Version
1.0. (See
56 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
58 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>