Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:01:20

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 #  * See http://www.boost.org for most recent version.
0010 #  */
0011 0012 ">#
0013 # /* Revised by Paul Mensonides (2002) */
0014 0015 ">#
0016 # ifndef BOOST_PREPROCESSOR_LIST_ADT_HPP
0017 # define BOOST_PREPROCESSOR_LIST_ADT_HPP
0018 0019 ">#
0020 # include <boost/preprocessor/config/config.hpp>
0021 # include <boost/preprocessor/detail/is_binary.hpp>
0022 # include <boost/preprocessor/logical/compl.hpp>
0023 # include <boost/preprocessor/tuple/eat.hpp>
0024 0025 ">#
0026 # /* BOOST_PP_LIST_CONS */
0027 0028 ">#
0029 # define BOOST_PP_LIST_CONS(head, tail) (head, tail)
0030 0031 ">#
0032 # /* BOOST_PP_LIST_NIL */
0033 0034 ">#
0035 # define BOOST_PP_LIST_NIL BOOST_PP_NIL
0036 0037 ">#
0038 # /* BOOST_PP_LIST_FIRST */
0039 0040 ">#
0041 # define BOOST_PP_LIST_FIRST(list) BOOST_PP_LIST_FIRST_D(list)
0042 0043 ">#
0044 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0045 #    define BOOST_PP_LIST_FIRST_D(list) BOOST_PP_LIST_FIRST_I list
0046 # else
0047 #    define BOOST_PP_LIST_FIRST_D(list) BOOST_PP_LIST_FIRST_I ## list
0048 # endif
0049 0050 ">#
0051 # define BOOST_PP_LIST_FIRST_I(head, tail) head
0052 0053 ">#
0054 # /* BOOST_PP_LIST_REST */
0055 0056 ">#
0057 # define BOOST_PP_LIST_REST(list) BOOST_PP_LIST_REST_D(list)
0058 0059 ">#
0060 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0061 #    define BOOST_PP_LIST_REST_D(list) BOOST_PP_LIST_REST_I list
0062 # else
0063 #    define BOOST_PP_LIST_REST_D(list) BOOST_PP_LIST_REST_I ## list
0064 # endif
0065 0066 ">#
0067 # define BOOST_PP_LIST_REST_I(head, tail) tail
0068 0069 ">#
0070 # /* BOOST_PP_LIST_IS_CONS */
0071 0072 ">#
0073 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_BCC()
0074 #    define BOOST_PP_LIST_IS_CONS(list) BOOST_PP_LIST_IS_CONS_D(list)
0075 #    define BOOST_PP_LIST_IS_CONS_D(list) BOOST_PP_LIST_IS_CONS_ ## list
0076 #    define BOOST_PP_LIST_IS_CONS_(head, tail) 1
0077 #    define BOOST_PP_LIST_IS_CONS_BOOST_PP_NIL 0
0078 # else
0079 #    define BOOST_PP_LIST_IS_CONS(list) BOOST_PP_IS_BINARY(list)
0080 # endif
0081 0082 ">#
0083 # /* BOOST_PP_LIST_IS_NIL */
0084 0085 ">#
0086 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_BCC()
0087 #    define BOOST_PP_LIST_IS_NIL(list) BOOST_PP_COMPL(BOOST_PP_IS_BINARY(list))
0088 # else
0089 #    define BOOST_PP_LIST_IS_NIL(list) BOOST_PP_COMPL(BOOST_PP_LIST_IS_CONS(list))
0090 # endif
0091 0092 ">#
0093 # endif