1 # /* Copyright (C) 2001
\r
3 # * http://www.housemarque.com
\r
5 # * Distributed under the Boost Software License, Version 1.0. (See
\r
6 # * accompanying file LICENSE_1_0.txt or copy at
\r
7 # * http://www.boost.org/LICENSE_1_0.txt)
\r
10 # /* Revised by Paul Mensonides (2002) */
\r
12 # /* See http://www.boost.org for most recent version. */
\r
14 # ifndef BOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
\r
15 # define BOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
\r
17 # include <boost/preprocessor/cat.hpp>
\r
18 # include <boost/preprocessor/control/while.hpp>
\r
19 # include <boost/preprocessor/debug/error.hpp>
\r
20 # include <boost/preprocessor/detail/auto_rec.hpp>
\r
23 # define BOOST_PP_LIST_FOLD_RIGHT(op, state, list)
\r
26 # define BOOST_PP_LIST_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_LIST_FOLD_RIGHT_, BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256))
\r
28 # define BOOST_PP_LIST_FOLD_RIGHT_257(o, s, l) BOOST_PP_ERROR(0x0004)
\r
30 # define BOOST_PP_LIST_FOLD_RIGHT_D(d, o, s, l) BOOST_PP_LIST_FOLD_RIGHT_ ## d(o, s, l)
\r
31 # define BOOST_PP_LIST_FOLD_RIGHT_2ND BOOST_PP_LIST_FOLD_RIGHT
\r
32 # define BOOST_PP_LIST_FOLD_RIGHT_2ND_D BOOST_PP_LIST_FOLD_RIGHT_D
\r
34 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
\r
35 # include <boost/preprocessor/list/detail/edg/fold_right.hpp>
\r
37 # include <boost/preprocessor/list/detail/fold_right.hpp>
\r