2002-01-29 14:28:42 +00:00
|
|
|
/* 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-12-28 08:41:34 +00:00
|
|
|
|
|
|
|
#include <boost/preprocessor/logical.hpp>
|
|
|
|
|
|
|
|
#include <libs/preprocessor/test/test.hpp>
|
|
|
|
|
2002-01-29 14:28:42 +00:00
|
|
|
/* *** */
|
2001-12-28 08:41:34 +00:00
|
|
|
|
2002-03-10 08:27:13 +00:00
|
|
|
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__))
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_NOT(MACRO MACRO_ARGS(0)) == 1 TEST_E
|
2002-01-25 13:00:03 +00:00
|
|
|
#endif
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_NOT(1) == 0 TEST_E
|
|
|
|
|
2002-03-10 08:27:13 +00:00
|
|
|
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__))
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_AND(0,MACRO MACRO_ARGS(0)) == 0 TEST_E
|
2002-01-25 13:00:03 +00:00
|
|
|
#endif
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_AND(0,1) == 0 TEST_E
|
|
|
|
TEST_B BOOST_PP_AND(1,0) == 0 TEST_E
|
|
|
|
TEST_B BOOST_PP_AND(1,1) == 1 TEST_E
|
|
|
|
|
2002-03-10 08:27:13 +00:00
|
|
|
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__))
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_OR(0,MACRO MACRO_ARGS(0)) == 0 TEST_E
|
2002-01-25 13:00:03 +00:00
|
|
|
#endif
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_OR(0,1) == 1 TEST_E
|
|
|
|
TEST_B BOOST_PP_OR(1,0) == 1 TEST_E
|
|
|
|
TEST_B BOOST_PP_OR(1,1) == 1 TEST_E
|
|
|
|
|
2002-03-10 08:27:13 +00:00
|
|
|
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__))
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_XOR(0,MACRO MACRO_ARGS(0)) == 0 TEST_E
|
2002-01-25 13:00:03 +00:00
|
|
|
#endif
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_XOR(0,1) == 1 TEST_E
|
|
|
|
TEST_B BOOST_PP_XOR(1,0) == 1 TEST_E
|
|
|
|
TEST_B BOOST_PP_XOR(1,1) == 0 TEST_E
|
|
|
|
|
2002-03-10 08:27:13 +00:00
|
|
|
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__))
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_NOR(0,MACRO MACRO_ARGS(0)) == 1 TEST_E
|
2002-01-25 13:00:03 +00:00
|
|
|
#endif
|
2002-01-22 13:38:55 +00:00
|
|
|
TEST_B BOOST_PP_NOR(0,1) == 0 TEST_E
|
|
|
|
TEST_B BOOST_PP_NOR(1,0) == 0 TEST_E
|
|
|
|
TEST_B BOOST_PP_NOR(1,1) == 0 TEST_E
|