• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # /* **************************************************************************
2 #  *                                                                          *
3 #  *     (C) Copyright Paul Mensonides 2002.
4 #  *     Distributed under the Boost Software License, Version 1.0. (See
5 #  *     accompanying file LICENSE_1_0.txt or copy at
6 #  *     http://www.boost.org/LICENSE_1_0.txt)
7 #  *                                                                          *
8 #  ************************************************************************** */
9 #
10 # /* See http://www.boost.org for most recent version. */
11 #
12 # include <boost/preprocessor/logical.hpp>
13 # include <libs/preprocessor/test/test.h>
14 
15 BEGIN BOOST_PP_NOT(0) == 1 END
16 BEGIN BOOST_PP_NOT(2) == 0 END
17 
18 BEGIN BOOST_PP_AND(0, 0) == 0 END
19 BEGIN BOOST_PP_AND(0, 3) == 0 END
20 BEGIN BOOST_PP_AND(4, 0) == 0 END
21 BEGIN BOOST_PP_AND(5, 6) == 1 END
22 
23 BEGIN BOOST_PP_OR(0, 0) == 0 END
24 BEGIN BOOST_PP_OR(0, 7) == 1 END
25 BEGIN BOOST_PP_OR(8, 0) == 1 END
26 BEGIN BOOST_PP_OR(9, 1) == 1 END
27 
28 BEGIN BOOST_PP_XOR(0, 0) == 0 END
29 BEGIN BOOST_PP_XOR(0, 2) == 1 END
30 BEGIN BOOST_PP_XOR(3, 0) == 1 END
31 BEGIN BOOST_PP_XOR(4, 5) == 0 END
32 
33 BEGIN BOOST_PP_NOR(0, 0) == 1 END
34 BEGIN BOOST_PP_NOR(0, 6) == 0 END
35 BEGIN BOOST_PP_NOR(7, 0) == 0 END
36 BEGIN BOOST_PP_NOR(8, 9) == 0 END
37 
38 BEGIN BOOST_PP_BOOL(22) == 1 END
39 BEGIN BOOST_PP_BOOL(0) == 0 END
40 
41 BEGIN BOOST_PP_BITAND(0, 0) == 0 END
42 BEGIN BOOST_PP_BITAND(0, 1) == 0 END
43 BEGIN BOOST_PP_BITAND(1, 0) == 0 END
44 BEGIN BOOST_PP_BITAND(1, 1) == 1 END
45 
46 BEGIN BOOST_PP_BITNOR(0, 0) == 1 END
47 BEGIN BOOST_PP_BITNOR(0, 1) == 0 END
48 BEGIN BOOST_PP_BITNOR(1, 0) == 0 END
49 BEGIN BOOST_PP_BITNOR(1, 1) == 0 END
50 
51 BEGIN BOOST_PP_BITOR(0, 0) == 0 END
52 BEGIN BOOST_PP_BITOR(0, 1) == 1 END
53 BEGIN BOOST_PP_BITOR(1, 0) == 1 END
54 BEGIN BOOST_PP_BITOR(1, 1) == 1 END
55 
56 BEGIN BOOST_PP_BITXOR(0, 0) == 0 END
57 BEGIN BOOST_PP_BITXOR(0, 1) == 1 END
58 BEGIN BOOST_PP_BITXOR(1, 0) == 1 END
59 BEGIN BOOST_PP_BITXOR(1, 1) == 0 END
60