[SVN r25856]
This commit is contained in:
Paul Mensonides
2004-10-24 23:52:55 +00:00
parent b71f390686
commit e11d89cecd
9 changed files with 614 additions and 265 deletions

View File

@ -44,11 +44,12 @@
<h4>Sample Code</h4>
<div><pre>
#include &lt;<a href="../headers/control/iif.html">boost/preprocessor/control/iif.hpp</a>&gt;
#include &lt;<a href="../headers/logical/or.html">boost/preprocessor/logical/or.hpp</a>
#define OR_IF(p, q, t, f) <a href="iif.html">BOOST_PP_IIF</a>(<a href="or.html">BOOST_PP_OR</a>(p, q), t, f)
OR_IF(1, 0, abc, xyz) // expands to abc
OF_IF(0, 0, abc, xyz) // expands to xyz
OR_IF(0, 0, abc, xyz) // expands to xyz
</pre></div>
</body>
</html>