Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/preprocessor/test/facilities.cpp @ 12

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

File size: 1.0 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/cat.hpp>
13# include <boost/preprocessor/facilities.hpp>
14# include <libs/preprocessor/test/test.h>
15
16BEGIN BOOST_PP_APPLY(BOOST_PP_NIL) 0 == 0 END
17BEGIN BOOST_PP_APPLY((0)) == 0 END
18
19BEGIN BOOST_PP_APPLY((BOOST_PP_EMPTY))() 0 == 0 END
20
21# define MACRO(x, y, z) 1
22# define ARGS (1, 2, 3)
23
24BEGIN BOOST_PP_EXPAND(MACRO ARGS) == 1 END
25
26BEGIN BOOST_PP_IDENTITY(1)() == 1 END
27
28BEGIN BOOST_PP_CAT(BOOST_PP_INTERCEPT, 2) 1 == 1 END
Note: See TracBrowser for help on using the repository browser.