47 lines
2.2 KiB
C++
47 lines
2.2 KiB
C++
# /* Copyright (C) 2001
|
|
# * Housemarque Oy
|
|
# * http://www.housemarque.com
|
|
# *
|
|
# * Distributed under the Boost Software License, Version 1.0. (See
|
|
# * accompanying file LICENSE_1_0.txt or copy at
|
|
# * http://www.boost.org/LICENSE_1_0.txt)
|
|
# */
|
|
#
|
|
# /* Revised by Paul Mensonides (2002) */
|
|
#
|
|
# /* See http://www.boost.org for most recent version. */
|
|
#
|
|
# ifndef ACTIV_BOOST_PREPROCESSOR_COMPARISON_LESS_HPP
|
|
# define ACTIV_BOOST_PREPROCESSOR_COMPARISON_LESS_HPP
|
|
#
|
|
# include <ActivBoost/preprocessor/comparison/less_equal.hpp>
|
|
# include <ActivBoost/preprocessor/comparison/not_equal.hpp>
|
|
# include <ActivBoost/preprocessor/config/config.hpp>
|
|
# include <ActivBoost/preprocessor/control/iif.hpp>
|
|
# include <ActivBoost/preprocessor/logical/bitand.hpp>
|
|
# include <ActivBoost/preprocessor/tuple/eat.hpp>
|
|
#
|
|
# /* ACTIV_BOOST_PP_LESS */
|
|
#
|
|
# if ACTIV_BOOST_PP_CONFIG_FLAGS() & (ACTIV_BOOST_PP_CONFIG_MWCC() | ACTIV_BOOST_PP_CONFIG_DMC())
|
|
# define ACTIV_BOOST_PP_LESS(x, y) ACTIV_BOOST_PP_BITAND(ACTIV_BOOST_PP_NOT_EQUAL(x, y), ACTIV_BOOST_PP_LESS_EQUAL(x, y))
|
|
# elif ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG()
|
|
# define ACTIV_BOOST_PP_LESS(x, y) ACTIV_BOOST_PP_IIF(ACTIV_BOOST_PP_NOT_EQUAL(x, y), ACTIV_BOOST_PP_LESS_EQUAL, 0 ACTIV_BOOST_PP_TUPLE_EAT_2)(x, y)
|
|
# else
|
|
# define ACTIV_BOOST_PP_LESS(x, y) ACTIV_BOOST_PP_LESS_I(x, y)
|
|
# define ACTIV_BOOST_PP_LESS_I(x, y) ACTIV_BOOST_PP_IIF(ACTIV_BOOST_PP_NOT_EQUAL(x, y), ACTIV_BOOST_PP_LESS_EQUAL, 0 ACTIV_BOOST_PP_TUPLE_EAT_2)(x, y)
|
|
# endif
|
|
#
|
|
# /* ACTIV_BOOST_PP_LESS_D */
|
|
#
|
|
# if ACTIV_BOOST_PP_CONFIG_FLAGS() & (ACTIV_BOOST_PP_CONFIG_MWCC() | ACTIV_BOOST_PP_CONFIG_DMC())
|
|
# define ACTIV_BOOST_PP_LESS_D(d, x, y) ACTIV_BOOST_PP_BITAND(ACTIV_BOOST_PP_NOT_EQUAL(x, y), ACTIV_BOOST_PP_LESS_EQUAL_D(d, x, y))
|
|
# elif ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG()
|
|
# define ACTIV_BOOST_PP_LESS_D(d, x, y) ACTIV_BOOST_PP_IIF(ACTIV_BOOST_PP_NOT_EQUAL(x, y), ACTIV_BOOST_PP_LESS_EQUAL_D, 0 ACTIV_BOOST_PP_TUPLE_EAT_3)(d, x, y)
|
|
# else
|
|
# define ACTIV_BOOST_PP_LESS_D(d, x, y) ACTIV_BOOST_PP_LESS_D_I(d, x, y)
|
|
# define ACTIV_BOOST_PP_LESS_D_I(d, x, y) ACTIV_BOOST_PP_IIF(ACTIV_BOOST_PP_NOT_EQUAL(x, y), ACTIV_BOOST_PP_LESS_EQUAL_D, 0 ACTIV_BOOST_PP_TUPLE_EAT_3)(d, x, y)
|
|
# endif
|
|
#
|
|
# endif
|