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/slot.hpp> 13 # include <libs/preprocessor/test/test.h> 14 # include <boost/preprocessor/slot/counter.hpp> 15 16 # define X() 4 17 18 # define BOOST_PP_VALUE 1 + 2 + 3 + X() 19 # include BOOST_PP_ASSIGN_SLOT(1) 20 21 # undef X 22 23 BEGIN BOOST_PP_SLOT(1) == 10 END 24 25 # define BOOST_PP_VALUE BOOST_PP_SLOT(1) * BOOST_PP_SLOT(1) 26 # include BOOST_PP_ASSIGN_SLOT(1) 27 28 BEGIN BOOST_PP_SLOT(1) == 100 END 29 30 BEGIN BOOST_PP_COUNTER == 0 END 31 32 #include BOOST_PP_UPDATE_COUNTER() 33 34 BEGIN BOOST_PP_COUNTER == 1 END 35 36 #include BOOST_PP_UPDATE_COUNTER() 37 #include BOOST_PP_UPDATE_COUNTER() 38 39 BEGIN BOOST_PP_COUNTER == 3 END 40 41 #include BOOST_PP_UPDATE_COUNTER() 42 #include BOOST_PP_UPDATE_COUNTER() 43 #include BOOST_PP_UPDATE_COUNTER() 44 45 BEGIN BOOST_PP_COUNTER == 6 END 46 47 #include BOOST_PP_UPDATE_COUNTER() 48 #include BOOST_PP_UPDATE_COUNTER() 49 #include BOOST_PP_UPDATE_COUNTER() 50 #include BOOST_PP_UPDATE_COUNTER() 51 #include BOOST_PP_UPDATE_COUNTER() 52 53 BEGIN BOOST_PP_COUNTER == 11 END 54