Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-28 08:13: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 ">#
0011 # /* Revised by Paul Mensonides (2002) */
0012 0013 ">#
0014 # /* See http://www.boost.org for most recent version. */
0015 0016 ">#
0017 # ifndef BOOST_PREPROCESSOR_LIST_REST_N_HPP
0018 # define BOOST_PREPROCESSOR_LIST_REST_N_HPP
0019 0020 ">#
0021 # include <boost/preprocessor/arithmetic/dec.hpp>
0022 # include <boost/preprocessor/config/config.hpp>
0023 # include <boost/preprocessor/control/while.hpp>
0024 # include <boost/preprocessor/list/adt.hpp>
0025 # include <boost/preprocessor/tuple/elem.hpp>
0026 0027 ">#
0028 # /* BOOST_PP_LIST_REST_N */
0029 0030 ">#
0031 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0032 #    define BOOST_PP_LIST_REST_N(count, list) BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE(BOOST_PP_LIST_REST_N_P, BOOST_PP_LIST_REST_N_O, (list, count)))
0033 # else
0034 #    define BOOST_PP_LIST_REST_N(count, list) BOOST_PP_LIST_REST_N_I(count, list)
0035 #    define BOOST_PP_LIST_REST_N_I(count, list) BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE(BOOST_PP_LIST_REST_N_P, BOOST_PP_LIST_REST_N_O, (list, count)))
0036 # endif
0037 0038 ">#
0039 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0040 #    define BOOST_PP_LIST_REST_N_P(d, lc) BOOST_PP_TUPLE_ELEM(2, 1, lc)
0041 # else
0042 #    define BOOST_PP_LIST_REST_N_P(d, lc) BOOST_PP_LIST_REST_N_P_I lc
0043 #    define BOOST_PP_LIST_REST_N_P_I(list, count) count
0044 # endif
0045 0046 ">#
0047 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0048 #    define BOOST_PP_LIST_REST_N_O(d, lc) (BOOST_PP_LIST_REST(BOOST_PP_TUPLE_ELEM(2, 0, lc)), BOOST_PP_DEC(BOOST_PP_TUPLE_ELEM(2, 1, lc)))
0049 # else
0050 #    define BOOST_PP_LIST_REST_N_O(d, lc) BOOST_PP_LIST_REST_N_O_I lc
0051 #    define BOOST_PP_LIST_REST_N_O_I(list, count) (BOOST_PP_LIST_REST(list), BOOST_PP_DEC(count))
0052 # endif
0053 0054 ">#
0055 # /* BOOST_PP_LIST_REST_N_D */
0056 0057 ">#
0058 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0059 #    define BOOST_PP_LIST_REST_N_D(d, count, list) BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE_ ## d(BOOST_PP_LIST_REST_N_P, BOOST_PP_LIST_REST_N_O, (list, count)))
0060 # else
0061 #    define BOOST_PP_LIST_REST_N_D(d, count, list) BOOST_PP_LIST_REST_N_D_I(d, count, list)
0062 #    define BOOST_PP_LIST_REST_N_D_I(d, count, list) BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE_ ## d(BOOST_PP_LIST_REST_N_P, BOOST_PP_LIST_REST_N_O, (list, count)))
0063 # endif
0064 0065 ">#
0066 # endif