variadics.html 1.5 KB

123456789101112131415161718192021222324252627282930
  1. <html>
  2. <head>
  3. <title>BOOST_PP_VARIADICS</title>
  4. <link rel="stylesheet" type="text/css" href="../styles.css">
  5. </head>
  6. <body>
  7. <div style="margin-left: 0px;"> The <b>BOOST_PP_VARIADICS </b>macro specifies whether variadic macro support exists.<br>
  8. </div>
  9. <h4>Usage</h4>
  10. <div class="code"><b>BOOST_PP_VARIADICS</b><br>
  11. </div><b>Remarks</b>
  12. <div> The macro is an <i>object-like</i> macro. It is used in internal
  13. code to check for the presence of variadic macro support. It can be
  14. used by the end-user for the same purpose. The macro equals 1 if
  15. variadic macros are supported and 0 if they are not. </div><b>Requirements</b>
  16. <div> <b>Header:</b> &nbsp;<a href="../headers/config/variadics.html">&lt;boost/preprocessor/config/config.hpp&gt;</a>
  17. </div>
  18. <h4>Sample Code</h4>
  19. <div>
  20. <pre>#include &lt;<a href="../headers/config/variadics.html">boost/preprocessor/config/config.hpp</a>&gt;<br><br>#if <a href="variadics.html">BOOST_PP_VARIADICS</a><br>#define SOME_MACRO(...) // replacement list<br>#else<br>#define SOME_MACRO(param1,param2) // replacement list<br>#endif<br></pre>
  21. </div>
  22. <hr size="1">
  23. <div style="margin-left: 0px;"> <i></i><i>© Copyright Edward Diener 2011,2014</i> </div>
  24. <div style="margin-left: 0px;">
  25. <p><small>Distributed under the Boost Software License, Version 1.0.
  26. (See accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
  27. or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  28. </div>
  29. </body>
  30. </html>