]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpl/test/aux_/preprocessor/token_equal.cpp
2 // Copyright Aleksey Gurtovoy 2003-2004
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/mpl for documentation.
14 #include <boost/mpl/aux_/preprocessor/token_equal.hpp>
16 #include <boost/preprocessor/logical/not.hpp>
17 #include <boost/preprocessor/debug/assert.hpp>
19 #define AUX_ASSERT_EQUAL(x, y) \
20 BOOST_PP_ASSERT( BOOST_MPL_PP_TOKEN_EQUAL(x, y) ) \
23 #define AUX_ASSERT_NOT_EQUAL(x, y) \
24 BOOST_PP_ASSERT( BOOST_PP_NOT( BOOST_MPL_PP_TOKEN_EQUAL(x, y) ) ) \
27 #define BOOST_MPL_PP_TOKEN_EQUAL_apple(x) x
28 #define BOOST_MPL_PP_TOKEN_EQUAL_orange(x) x
30 AUX_ASSERT_NOT_EQUAL( apple
, abc
)
31 AUX_ASSERT_NOT_EQUAL( abc
, apple
)
32 AUX_ASSERT_NOT_EQUAL( apple
, orange
)
33 AUX_ASSERT_NOT_EQUAL( orange
, apple
)
35 AUX_ASSERT_EQUAL( apple
, apple
)
36 AUX_ASSERT_EQUAL( orange
, orange
)