]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/logical/nor.hpp
update boost
[lyx.git] / boost / boost / preprocessor / logical / nor.hpp
1 #ifndef BOOST_PREPROCESSOR_LOGICAL_NOR_HPP
2 #define BOOST_PREPROCESSOR_LOGICAL_NOR_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/detail/cat.hpp>
17 #include <boost/preprocessor/logical/bool.hpp>
18
19 /** <p>Expands to the logical NEITHER OR of the operands.</p>
20
21 <p>Both <code>X</code> and <code>Y</code> must expand to integer literals
22 in the range [0, BOOST_PP_LIMIT_MAG].</p>
23
24 <p>For example, <code>BOOST_PP_NOR(0,5)</code> expands to <code>0</code> (a single token).</p>
25
26 <h3>Test</h3>
27 <ul>
28   <li><a href="../../test/logical_test.cpp">logical_test.cpp</a></li>
29 </ul>
30 */
31 #define BOOST_PP_NOR(X,Y) BOOST_PP_DETAIL_CAT3(BOOST_PP_NOR,BOOST_PP_BOOL(X),BOOST_PP_BOOL(Y))
32
33 #define BOOST_PP_NOR00 1
34 #define BOOST_PP_NOR01 0
35 #define BOOST_PP_NOR10 0
36 #define BOOST_PP_NOR11 0
37 #endif