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 2014.                                    *
0004 #  *     Distributed under the Boost Software License, Version 1.0. (See      *
0005 #  *     accompanying file LICENSE_1_0.txt or copy at                         *
0006 #  *     http://www.boost.org/LICENSE_1_0.txt)                                *
0007 #  *                                                                          *
0008 #  ************************************************************************** */
0009 #
0010 # /* See http://www.boost.org for most recent version. */
0011 #
0012 # ifndef BOOST_PREPROCESSOR_ARRAY_DETAIL_GET_DATA_HPP
0013 # define BOOST_PREPROCESSOR_ARRAY_DETAIL_GET_DATA_HPP
0014 #
0015 # include <boost/preprocessor/config/config.hpp>
0016 # include <boost/preprocessor/tuple/rem.hpp>
0017 # include <boost/preprocessor/control/if.hpp>
0018 # include <boost/preprocessor/control/iif.hpp>
0019 # include <boost/preprocessor/facilities/is_1.hpp>
0020 #
0021 # /* BOOST_PP_ARRAY_DETAIL_GET_DATA */
0022 #
0023 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_NONE(size, data)
0024 
0025 # if !(BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400)
0026 #    if BOOST_PP_VARIADICS_MSVC
0027 #       define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_DEFAULT(size, data) BOOST_PP_TUPLE_REM(size) data
0028 #       define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_CAT(size, data) BOOST_PP_TUPLE_REM_CAT(size) data
0029 #       define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) \
0030             BOOST_PP_IIF \
0031                 ( \
0032                 BOOST_PP_IS_1(size), \
0033                 BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_CAT, \
0034                 BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_DEFAULT \
0035                 ) \
0036             (size,data) \
0037 /**/
0038 #    else
0039 #       define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
0040 #    endif
0041 # else
0042 #    define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
0043 # endif
0044 
0045 # define BOOST_PP_ARRAY_DETAIL_GET_DATA(size, data) \
0046     BOOST_PP_IF \
0047         ( \
0048         size, \
0049         BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY, \
0050         BOOST_PP_ARRAY_DETAIL_GET_DATA_NONE \
0051         ) \
0052     (size,data) \
0053 /**/
0054 #
0055 # endif /* BOOST_PREPROCESSOR_ARRAY_DETAIL_GET_DATA_HPP */