Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:52

0001 # /* Copyright (C) 2001
0002 #  * Housemarque Oy
0003 #  * http://www.housemarque.com
0004 #  *
0005 #  * Distributed under the Boost Software License, Version 1.0. (See
0006 #  * accompanying file LICENSE_1_0.txt or copy at
0007 #  * http://www.boost.org/LICENSE_1_0.txt)
0008 #  */
0009 #
0010 # /* Revised by Paul Mensonides (2002) */
0011 # /* Revised by Edward Diener (2020) */
0012 #
0013 # /* See http://www.boost.org for most recent version. */
0014 #
0015 # ifndef BOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
0016 # define BOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
0017 #
0018 # include <boost/preprocessor/config/config.hpp>
0019 #
0020 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
0021 #
0022 # include <boost/preprocessor/cat.hpp>
0023 # include <boost/preprocessor/control/while.hpp>
0024 # include <boost/preprocessor/debug/error.hpp>
0025 # include <boost/preprocessor/detail/auto_rec.hpp>
0026 #
0027 # if 0
0028 #    define BOOST_PP_LIST_FOLD_RIGHT(op, state, list)
0029 # endif
0030 #
0031 # define BOOST_PP_LIST_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_LIST_FOLD_RIGHT_, BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256))
0032 #
0033 # define BOOST_PP_LIST_FOLD_RIGHT_257(o, s, l) BOOST_PP_ERROR(0x0004)
0034 #
0035 # define BOOST_PP_LIST_FOLD_RIGHT_D(d, o, s, l) BOOST_PP_LIST_FOLD_RIGHT_ ## d(o, s, l)
0036 # define BOOST_PP_LIST_FOLD_RIGHT_2ND BOOST_PP_LIST_FOLD_RIGHT
0037 # define BOOST_PP_LIST_FOLD_RIGHT_2ND_D BOOST_PP_LIST_FOLD_RIGHT_D
0038 #
0039 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0040 #    include <boost/preprocessor/list/detail/edg/fold_right.hpp>
0041 # else
0042 #    include <boost/preprocessor/list/detail/fold_right.hpp>
0043 # endif
0044 #
0045 # else
0046 #
0047 # include <boost/preprocessor/arithmetic/dec.hpp>
0048 # include <boost/preprocessor/cat.hpp>
0049 # include <boost/preprocessor/control/while.hpp>
0050 # include <boost/preprocessor/debug/error.hpp>
0051 # include <boost/preprocessor/detail/auto_rec.hpp>
0052 #
0053 # if 0
0054 #    define BOOST_PP_LIST_FOLD_RIGHT(op, state, list)
0055 # endif
0056 #
0057 # include <boost/preprocessor/config/limits.hpp>
0058 #
0059 # if BOOST_PP_LIMIT_WHILE == 256
0060 # define BOOST_PP_LIST_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_LIST_FOLD_RIGHT_, BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256)))
0061 # define BOOST_PP_LIST_FOLD_RIGHT_257(o, s, l) BOOST_PP_ERROR(0x0004)
0062 # elif BOOST_PP_LIMIT_WHILE == 512
0063 # define BOOST_PP_LIST_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_LIST_FOLD_RIGHT_, BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 512)))
0064 # define BOOST_PP_LIST_FOLD_RIGHT_513(o, s, l) BOOST_PP_ERROR(0x0004)
0065 # elif BOOST_PP_LIMIT_WHILE == 1024
0066 # define BOOST_PP_LIST_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_LIST_FOLD_RIGHT_, BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 1024)))
0067 # define BOOST_PP_LIST_FOLD_RIGHT_1025(o, s, l) BOOST_PP_ERROR(0x0004)
0068 # else
0069 # error Incorrect value for the BOOST_PP_LIMIT_WHILE limit
0070 # endif
0071 #
0072 # define BOOST_PP_LIST_FOLD_RIGHT_D(d, o, s, l) BOOST_PP_LIST_FOLD_RIGHT_ ## d(o, s, l)
0073 # define BOOST_PP_LIST_FOLD_RIGHT_2ND BOOST_PP_LIST_FOLD_RIGHT
0074 # define BOOST_PP_LIST_FOLD_RIGHT_2ND_D BOOST_PP_LIST_FOLD_RIGHT_D
0075 #
0076 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0077 #    include <boost/preprocessor/list/detail/edg/fold_right.hpp>
0078 # else
0079 #    include <boost/preprocessor/list/detail/fold_right.hpp>
0080 # endif
0081 #
0082 # endif
0083 #
0084 # endif