forked from boostorg/preprocessor
Added requirements on numeric parameters
[SVN r13460]
This commit is contained in:
@ -17,6 +17,9 @@
|
||||
|
||||
/** <p>Expands to the logical AND of the operands.</p>
|
||||
|
||||
<p>Both <code>X</code> and <code>Y</code> must expand to integer literals
|
||||
in the range [0, BOOST_PP_LIMIT_MAG].</p>
|
||||
|
||||
<p>For example, <code>BOOST_PP_AND(0,5)</code> expands to <code>0</code> (a single token).</p>
|
||||
|
||||
<h3>Test</h3>
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
/** <p>Expands to <code>0</code> if <code>X == 0</code> and <code>1</code> if <code>X != 0</code>.</p>
|
||||
|
||||
<p><code>X</code> must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].</p>
|
||||
|
||||
<p>For example, <code>BOOST_PP_BOOL(3)</code> expands to <code>1</code>.</p>
|
||||
*/
|
||||
#define BOOST_PP_BOOL(X) BOOST_PP_BOOL_DELAY(X)
|
||||
|
@ -17,6 +17,9 @@
|
||||
|
||||
/** <p>Expands to the logical NEITHER OR of the operands.</p>
|
||||
|
||||
<p>Both <code>X</code> and <code>Y</code> must expand to integer literals
|
||||
in the range [0, BOOST_PP_LIMIT_MAG].</p>
|
||||
|
||||
<p>For example, <code>BOOST_PP_NOR(0,5)</code> expands to <code>0</code> (a single token).</p>
|
||||
|
||||
<h3>Test</h3>
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
/** <p>Expands to the logical NOT of the operand.</p>
|
||||
|
||||
<p><code>X</code> must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].</p>
|
||||
|
||||
<p>For example, <code>BOOST_PP_NOT(0)</code> expands to <code>1</code> (a single token).</p>
|
||||
|
||||
<h3>Test</h3>
|
||||
|
@ -17,6 +17,9 @@
|
||||
|
||||
/** <p>Expands to the logical OR of the operands.</p>
|
||||
|
||||
<p>Both <code>X</code> and <code>Y</code> must expand to integer literals
|
||||
in the range [0, BOOST_PP_LIMIT_MAG].</p>
|
||||
|
||||
<p>For example, <code>BOOST_PP_OR(0,2)</code> expands to <code>1</code> (a single token).</p>
|
||||
|
||||
<h3>Test</h3>
|
||||
|
@ -17,6 +17,9 @@
|
||||
|
||||
/** <p>Expands to the logical EXCLUSIVE OR of the operands.</p>
|
||||
|
||||
<p>Both <code>X</code> and <code>Y</code> must expand to integer literals
|
||||
in the range [0, BOOST_PP_LIMIT_MAG].</p>
|
||||
|
||||
<p>For example, <code>BOOST_PP_XOR(1,2)</code> expands to <code>0</code> (a single token).</p>
|
||||
|
||||
<h3>Test</h3>
|
||||
|
Reference in New Issue
Block a user