Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/preprocessor/test/logical.cpp @ 69

Last change on this file since 69 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.3 KB
Line 
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
15BEGIN BOOST_PP_NOT(0) == 1 END
16BEGIN BOOST_PP_NOT(2) == 0 END
17
18BEGIN BOOST_PP_AND(0, 0) == 0 END
19BEGIN BOOST_PP_AND(0, 3) == 0 END
20BEGIN BOOST_PP_AND(4, 0) == 0 END
21BEGIN BOOST_PP_AND(5, 6) == 1 END
22
23BEGIN BOOST_PP_OR(0, 0) == 0 END
24BEGIN BOOST_PP_OR(0, 7) == 1 END
25BEGIN BOOST_PP_OR(8, 0) == 1 END
26BEGIN BOOST_PP_OR(9, 1) == 1 END
27
28BEGIN BOOST_PP_XOR(0, 0) == 0 END
29BEGIN BOOST_PP_XOR(0, 2) == 1 END
30BEGIN BOOST_PP_XOR(3, 0) == 1 END
31BEGIN BOOST_PP_XOR(4, 5) == 0 END
32
33BEGIN BOOST_PP_NOR(0, 0) == 1 END
34BEGIN BOOST_PP_NOR(0, 6) == 0 END
35BEGIN BOOST_PP_NOR(7, 0) == 0 END
36BEGIN BOOST_PP_NOR(8, 9) == 0 END
Note: See TracBrowser for help on using the repository browser.