Back to home page

EIC code displayed by LXR

 
 

    


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

0001 # /* **************************************************************************
0002 #  *                                                                          *
0003 #  *     (C) Copyright Edward Diener 2011.                                    *
0004 #  *     (C) Copyright Paul Mensonides 2011.                                  *
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 # /* See http://www.boost.org for most recent version. */
0012 #
0013 # ifndef BOOST_PREPROCESSOR_ARRAY_ENUM_HPP
0014 # define BOOST_PREPROCESSOR_ARRAY_ENUM_HPP
0015 #
0016 # include <boost/preprocessor/cat.hpp>
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/control/if.hpp>
0019 # include <boost/preprocessor/array/size.hpp>
0020 # include <boost/preprocessor/tuple/rem.hpp>
0021 # include <boost/preprocessor/variadic/has_opt.hpp>
0022 #
0023 # /* BOOST_PP_ARRAY_ENUM */
0024 #
0025 # if BOOST_PP_VARIADIC_HAS_OPT()
0026 #    if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
0027 #        define BOOST_PP_ARRAY_ENUM_NOT_EMPTY(array) BOOST_PP_ARRAY_ENUM_I(BOOST_PP_TUPLE_REM_CTOR, array)
0028 #        define BOOST_PP_ARRAY_ENUM_I(m, args) BOOST_PP_ARRAY_ENUM_II(m, args)
0029 #        define BOOST_PP_ARRAY_ENUM_II(m, args) BOOST_PP_CAT(m ## args,)
0030 #    elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0031 #        define BOOST_PP_ARRAY_ENUM_NOT_EMPTY(array) BOOST_PP_ARRAY_ENUM_I(array)
0032 #        define BOOST_PP_ARRAY_ENUM_I(array) BOOST_PP_TUPLE_REM_CTOR ## array
0033 #    else
0034 #        define BOOST_PP_ARRAY_ENUM_NOT_EMPTY(array) BOOST_PP_TUPLE_REM_CTOR array
0035 #    endif
0036 #    define BOOST_PP_ARRAY_ENUM_EMPTY(array)
0037 #    define BOOST_PP_ARRAY_ENUM(array) BOOST_PP_IF(BOOST_PP_ARRAY_SIZE(array),BOOST_PP_ARRAY_ENUM_NOT_EMPTY,BOOST_PP_ARRAY_ENUM_EMPTY)(array)
0038 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
0039 #    define BOOST_PP_ARRAY_ENUM(array) BOOST_PP_ARRAY_ENUM_I(BOOST_PP_TUPLE_REM_CTOR, array)
0040 #    define BOOST_PP_ARRAY_ENUM_I(m, args) BOOST_PP_ARRAY_ENUM_II(m, args)
0041 #    define BOOST_PP_ARRAY_ENUM_II(m, args) BOOST_PP_CAT(m ## args,)
0042 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0043 #    define BOOST_PP_ARRAY_ENUM(array) BOOST_PP_ARRAY_ENUM_I(array)
0044 #    define BOOST_PP_ARRAY_ENUM_I(array) BOOST_PP_TUPLE_REM_CTOR ## array
0045 # else
0046 #    define BOOST_PP_ARRAY_ENUM(array) BOOST_PP_TUPLE_REM_CTOR array
0047 # endif
0048 #
0049 # endif