rparen.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <html>
  2. <head>
  3. <title>BOOST_PP_RPAREN</title>
  4. <link rel="stylesheet" type="text/css" href="../styles.css">
  5. </head>
  6. <body>
  7. <div style="margin-left: 0px;">
  8. The <b>BOOST_PP_RPAREN</b> macro expands to a right parenthesis.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_RPAREN</b>()
  13. </div>
  14. <h4>Remarks</h4>
  15. <div>
  16. The preprocessor interprets parentheses as delimiters in macro invocations.&nbsp;
  17. Because of this, parentheses require special handling.
  18. </div>
  19. <h4>See Also</h4>
  20. <ul>
  21. <li><a href="lparen.html">BOOST_PP_LPAREN</a></li>
  22. </ul>
  23. <h4>Requirements</h4>
  24. <div>
  25. <b>Header:</b> &nbsp;<a href="../headers/punctuation/paren.html">&lt;boost/preprocessor/punctuation/paren.hpp&gt;</a>
  26. </div>
  27. <h4>Sample Code</h4>
  28. <div><pre>
  29. #include &lt;<a href="../headers/facilities/empty.html">boost/preprocessor/facilities/empty.hpp</a>&gt;
  30. #include &lt;<a href="../headers/punctuation/paren.html">boost/preprocessor/punctuation/paren.hpp</a>&gt;
  31. #define X(x) x
  32. #define MACRO(x, p) X ( x p
  33. MACRO(abc, <a href="rparen.html">BOOST_PP_RPAREN</a>()) // expands to abc
  34. #define Y(x)
  35. MACRO(<a href="empty.html">BOOST_PP_EMPTY</a> <a href="rparen.html">BOOST_PP_RPAREN</a>()(), 10) // expands to 10
  36. </pre></div>
  37. <hr size="1">
  38. <div style="margin-left: 0px;">
  39. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  40. </br><i>© Copyright Paul Mensonides 2002</i>
  41. </div>
  42. <div style="margin-left: 0px;">
  43. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  44. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  45. copy at <a href=
  46. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  47. </div>
  48. </body>
  49. </html>