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