]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/logical/or.hpp
major boost update
[lyx.git] / boost / boost / preprocessor / logical / or.hpp
1 #ifndef BOOST_PREPROCESSOR_LOGICAL_OR_HPP
2 #define BOOST_PREPROCESSOR_LOGICAL_OR_HPP
3
4 /* Copyright (C) 2001
5  * Housemarque Oy
6  * http://www.housemarque.com
7  *
8  * Permission to copy, use, modify, sell and distribute this software is
9  * granted provided this copyright notice appears in all copies. This
10  * software is provided "as is" without express or implied warranty, and
11  * with no claim as to its suitability for any purpose.
12  *
13  * See http://www.boost.org for most recent version.
14  */
15
16 #include <boost/preprocessor/logical/not.hpp>
17
18 /** <p>Expands to the logical OR of the operands.</p>
19
20 <p>Both <code>X</code> and <code>Y</code> must expand to integer literals
21 in the range [0, BOOST_PP_LIMIT_MAG].</p>
22
23 <p>For example, <code>BOOST_PP_OR(0,2)</code> expands to <code>1</code> (a single token).</p>
24
25 <h3>Test</h3>
26 <ul>
27   <li><a href="../../test/logical_test.cpp">logical_test.cpp</a></li>
28 </ul>
29 */
30 #define BOOST_PP_OR(X,Y) BOOST_PP_NOT(BOOST_PP_NOR(X,Y))
31
32 /* <p>Obsolete. Use BOOST_PP_OR().</p> */
33 #define BOOST_PREPROCESSOR_OR(X,Y) BOOST_PP_OR(X,Y)
34 #endif