1
# /* **************************************************************************
3
# * (C) Copyright Paul Mensonides 2002. Permission to copy, use, *
4
# * modify, sell, and distribute this software is granted provided *
5
# * this copyright notice appears in all copies. This software is *
6
# * provided "as is" without express or implied warranty, and with *
7
# * no claim at to its suitability for any purpose. *
9
# ************************************************************************** */
11
# /* See http://www.boost.org for most recent version. */
13
# ifndef BOOST_PREPROCESSOR_LOGICAL_BITXOR_HPP
14
# define BOOST_PREPROCESSOR_LOGICAL_BITXOR_HPP
16
# include <boost/preprocessor/config/config.hpp>
18
# /* BOOST_PP_BITXOR */
20
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
21
# define BOOST_PP_BITXOR(x, y) BOOST_PP_BITXOR_I(x, y)
23
# define BOOST_PP_BITXOR(x, y) BOOST_PP_BITXOR_OO((x, y))
24
# define BOOST_PP_BITXOR_OO(par) BOOST_PP_BITXOR_I ## par
27
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
28
# define BOOST_PP_BITXOR_I(x, y) BOOST_PP_BITXOR_ ## x ## y
30
# define BOOST_PP_BITXOR_I(x, y) BOOST_PP_BITXOR_ID(BOOST_PP_BITXOR_ ## x ## y)
31
# define BOOST_PP_BITXOR_ID(id) id
34
# define BOOST_PP_BITXOR_00 0
35
# define BOOST_PP_BITXOR_01 1
36
# define BOOST_PP_BITXOR_10 1
37
# define BOOST_PP_BITXOR_11 0