forked from boostorg/preprocessor
..
[SVN r25856]
This commit is contained in:
@ -44,11 +44,12 @@
|
||||
<h4>Sample Code</h4>
|
||||
<div><pre>
|
||||
#include <<a href="../headers/control/iif.html">boost/preprocessor/control/iif.hpp</a>>
|
||||
#include <<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>
|
||||
|
Reference in New Issue
Block a user