]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/comparison/less.hpp
26b09adef0a0793585649ffe278b9535d279eb34
[lyx.git] / boost / boost / preprocessor / comparison / less.hpp
1 # /* Copyright (C) 2001
2 #  * Housemarque Oy
3 #  * http://www.housemarque.com
4 #  *
5 #  * Permission to copy, use, modify, sell and distribute this software is
6 #  * granted provided this copyright notice appears in all copies. This
7 #  * software is provided "as is" without express or implied warranty, and
8 #  * with no claim as to its suitability for any purpose.
9 #  */
10 #
11 # /* Revised by Paul Mensonides (2002) */
12 #
13 # /* See http://www.boost.org for most recent version. */
14 #
15 # ifndef BOOST_PREPROCESSOR_COMPARISON_LESS_HPP
16 # define BOOST_PREPROCESSOR_COMPARISON_LESS_HPP
17 #
18 # include <boost/preprocessor/comparison/less_equal.hpp>
19 # include <boost/preprocessor/comparison/not_equal.hpp>
20 # include <boost/preprocessor/config/config.hpp>
21 # include <boost/preprocessor/control/iif.hpp>
22 # include <boost/preprocessor/logical/bitand.hpp>
23 # include <boost/preprocessor/tuple/eat.hpp>
24 #
25 # /* BOOST_PP_LESS */
26 #
27 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
28 #    define BOOST_PP_LESS(x, y) BOOST_PP_BITAND(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL(x, y))
29 # elif ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
30 #    define BOOST_PP_LESS(x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL, 0 BOOST_PP_TUPLE_EAT_2)(x, y)
31 # else
32 #    define BOOST_PP_LESS(x, y) BOOST_PP_LESS_I(x, y)
33 #    define BOOST_PP_LESS_I(x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL, 0 BOOST_PP_TUPLE_EAT_2)(x, y)
34 # endif
35 #
36 # /* BOOST_PP_LESS_D */
37 #
38 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
39 #    define BOOST_PP_LESS_D(d, x, y) BOOST_PP_BITAND(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D(d, x, y))
40 # elif ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
41 #    define BOOST_PP_LESS_D(d, x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D, 0 BOOST_PP_TUPLE_EAT_3)(d, x, y)
42 # else
43 #    define BOOST_PP_LESS_D(d, x, y) BOOST_PP_LESS_D_I(d, x, y)
44 #    define BOOST_PP_LESS_D_I(d, x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D, 0 BOOST_PP_TUPLE_EAT_3)(d, x, y)
45 # endif
46 #
47 # endif