3 <title>BOOST_PP_COMMA_IF
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_COMMA_IF
</b> macro conditionally expands to a comma.
12 <b>BOOST_PP_COMMA_IF
</b>(
<i>cond
</i>)
18 The condition that determines if a the macro expands to a comma 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 comma.
28 The preprocessor interprets commas as argument separators in macro invocations.
29 Because of this, commas require special handling.
33 <li><a href=
"limit_mag.html">BOOST_PP_LIMIT_MAG
</a></li>
37 <b>Header:
</b> <a href=
"../headers/punctuation/comma_if.html"><boost/preprocessor/punctuation/comma_if.hpp
></a>
41 #include
<<a href=
"../headers/punctuation/comma_if.html">boost/preprocessor/punctuation/comma_if.hpp
</a>>
42 #include
<<a href=
"../headers/repetition/repeat.html">boost/preprocessor/repetition/repeat.hpp
</a>>
44 #define MACRO(z, n, text)
<a href=
"comma_if.html">BOOST_PP_COMMA_IF
</a>(n) text
46 <a href=
"repeat.html">BOOST_PP_REPEAT
</a>(
3, MACRO, class) // expands to class, class, class
49 <div style=
"margin-left: 0px;">
50 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
51 </br><i>© Copyright Paul Mensonides
2002</i>
53 <div style=
"margin-left: 0px;">
54 <p><small>Distributed under the Boost Software License, Version
1.0. (See
55 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
57 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>