Files
boost_preprocessor/include/boost/preprocessor/logical/xor.hpp

32 lines
944 B
C++
Raw Normal View History

2001-11-25 18:32:11 +00:00
#ifndef BOOST_PREPROCESSOR_LOGICAL_XOR_HPP
#define BOOST_PREPROCESSOR_LOGICAL_XOR_HPP
/* Copyright (C) 2001
* Housemarque Oy
* http://www.housemarque.com
*
* Permission to copy, use, modify, sell and distribute this software is
* granted provided this copyright notice appears in all copies. This
* software is provided "as is" without express or implied warranty, and
* with no claim as to its suitability for any purpose.
*
* See http://www.boost.org for most recent version.
*/
2001-11-25 18:32:11 +00:00
/** \file
2001-11-25 18:32:11 +00:00
<a href="../../../../boost/preprocessor/logical/xor.hpp">Click here to see the header.</a>
*/
#include <boost/preprocessor/logical/and.hpp>
/** Expands to the logical EXCLUSIVE OR of the operands.
For example, BOOST_PP_XOR(1,2) expands to 0 (a single token).
*/
#define BOOST_PP_XOR(X,Y) BOOST_PP_NOR(BOOST_PP_NOR(X,Y),BOOST_PP_AND(X,Y))
2001-11-25 18:32:11 +00:00
/** Obsolete. Use BOOST_PP_XOR(). */
#define BOOST_PREPROCESSOR_XOR(X,Y) BOOST_PP_XOR(X,Y)
2001-11-25 18:32:11 +00:00
#endif