blob: fd85597a5489c2db2c462d6f2badda6090769fcd [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001# /* Copyright (C) 2001
2# * Housemarque Oy
3# * http://www.housemarque.com
4# *
5# * Distributed under the Boost Software License, Version 1.0. (See
6# * accompanying file LICENSE_1_0.txt or copy at
7# * http://www.boost.org/LICENSE_1_0.txt)
8# */
9#
10# /* Revised by Paul Mensonides (2002) */
11#
12# /* See http://www.boost.org for most recent version. */
13#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070014# ifndef NDNBOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
15# define NDNBOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
Jeff Thompsonf7d49942013-08-01 16:47:40 -070016#
Jeff Thompson2277ce52013-08-01 17:34:11 -070017# include <ndnboost/preprocessor/cat.hpp>
18# include <ndnboost/preprocessor/control/while.hpp>
19# include <ndnboost/preprocessor/debug/error.hpp>
20# include <ndnboost/preprocessor/detail/auto_rec.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070021#
22# if 0
Jeff Thompson3d613fd2013-10-15 15:39:04 -070023# define NDNBOOST_PP_LIST_FOLD_RIGHT(op, state, list)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070024# endif
25#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070026# define NDNBOOST_PP_LIST_FOLD_RIGHT NDNBOOST_PP_CAT(NDNBOOST_PP_LIST_FOLD_RIGHT_, NDNBOOST_PP_AUTO_REC(NDNBOOST_PP_WHILE_P, 256))
Jeff Thompsonf7d49942013-08-01 16:47:40 -070027#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070028# define NDNBOOST_PP_LIST_FOLD_RIGHT_257(o, s, l) NDNBOOST_PP_ERROR(0x0004)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070029#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070030# define NDNBOOST_PP_LIST_FOLD_RIGHT_D(d, o, s, l) NDNBOOST_PP_LIST_FOLD_RIGHT_ ## d(o, s, l)
31# define NDNBOOST_PP_LIST_FOLD_RIGHT_2ND NDNBOOST_PP_LIST_FOLD_RIGHT
32# define NDNBOOST_PP_LIST_FOLD_RIGHT_2ND_D NDNBOOST_PP_LIST_FOLD_RIGHT_D
Jeff Thompsonf7d49942013-08-01 16:47:40 -070033#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070034# if NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_EDG()
Jeff Thompson2277ce52013-08-01 17:34:11 -070035# include <ndnboost/preprocessor/list/detail/edg/fold_right.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070036# else
Jeff Thompson2277ce52013-08-01 17:34:11 -070037# include <ndnboost/preprocessor/list/detail/fold_right.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070038# endif
39#
40# endif