Files
boost_preprocessor/include/boost/preprocessor/comparison/not_equal.hpp

55 lines
1.8 KiB
C++
Raw Normal View History

2002-09-08 10:22:48 +00:00
# /* 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)
2002-09-08 10:22:48 +00:00
# */
#
# /* Revised by Paul Mensonides (2002) */
# /* Revised by Edward Diener (2020) */
2002-09-08 10:22:48 +00:00
#
# /* See http://www.boost.org for most recent version. */
#
2002-09-12 08:00:48 +00:00
# ifndef BOOST_PREPROCESSOR_COMPARISON_NOT_EQUAL_HPP
# define BOOST_PREPROCESSOR_COMPARISON_NOT_EQUAL_HPP
2002-09-08 10:22:48 +00:00
#
2020-07-02 11:24:15 -04:00
# include <boost/preprocessor/cat.hpp>
# include <boost/preprocessor/config/config.hpp>
# include <boost/preprocessor/control/iif.hpp>
#
2002-09-08 10:22:48 +00:00
# /* BOOST_PP_NOT_EQUAL */
#
2020-07-02 11:24:15 -04:00
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
# define BOOST_PP_NOT_EQUAL(x, y) BOOST_PP_NOT_EQUAL_I(x, y)
# else
# define BOOST_PP_NOT_EQUAL(x, y) BOOST_PP_NOT_EQUAL_OO((x, y))
# define BOOST_PP_NOT_EQUAL_OO(par) BOOST_PP_NOT_EQUAL_I ## par
# endif
#
# define BOOST_PP_NOT_EQUAL_I(x, y) BOOST_PP_CAT(BOOST_PP_NOT_EQUAL_CHECK_, BOOST_PP_NOT_EQUAL_ ## x(0, BOOST_PP_NOT_EQUAL_ ## y))
#
# /* BOOST_PP_NOT_EQUAL_D */
#
# define BOOST_PP_NOT_EQUAL_D(d, x, y) BOOST_PP_NOT_EQUAL(x, y)
#
# define BOOST_PP_NOT_EQUAL_CHECK_BOOST_PP_NIL 1
#
# include <boost/preprocessor/config/limits.hpp>
2002-09-12 08:00:48 +00:00
#
# if BOOST_PP_LIMIT_MAG == 256
# include <boost/preprocessor/comparison/limits/not_equal_256.hpp>
# elif BOOST_PP_LIMIT_MAG == 512
2020-07-02 11:24:15 -04:00
# include <boost/preprocessor/comparison/limits/not_equal_256.hpp>
# include <boost/preprocessor/comparison/limits/not_equal_512.hpp>
2020-07-27 07:54:05 -04:00
# elif BOOST_PP_LIMIT_MAG == 1024
# include <boost/preprocessor/comparison/limits/not_equal_256.hpp>
# include <boost/preprocessor/comparison/limits/not_equal_512.hpp>
# include <boost/preprocessor/comparison/limits/not_equal_1024.hpp>
# else
# error Incorrect value for the BOOST_PP_LIMIT_MAG limit
# endif
2002-09-08 10:22:48 +00:00
#
# endif