annotate DEPENDENCIES/generic/include/boost/preprocessor/facilities/is_empty.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 # /* **************************************************************************
Chris@16 2 # * *
Chris@16 3 # * (C) Copyright Paul Mensonides 2003.
Chris@101 4 # * (C) Copyright Edward Diener 2014.
Chris@16 5 # * Distributed under the Boost Software License, Version 1.0. (See
Chris@16 6 # * accompanying file LICENSE_1_0.txt or copy at
Chris@16 7 # * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 # * *
Chris@16 9 # ************************************************************************** */
Chris@16 10 #
Chris@16 11 # /* See http://www.boost.org for most recent version. */
Chris@16 12 #
Chris@16 13 # ifndef BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_HPP
Chris@16 14 # define BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_HPP
Chris@16 15 #
Chris@16 16 # include <boost/preprocessor/config/config.hpp>
Chris@101 17 #
Chris@101 18 # if BOOST_PP_VARIADICS
Chris@101 19 #
Chris@101 20 # include <boost/preprocessor/facilities/is_empty_variadic.hpp>
Chris@101 21 #
Chris@101 22 # else
Chris@101 23 #
Chris@101 24 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC() && ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
Chris@101 25 # include <boost/preprocessor/tuple/elem.hpp>
Chris@101 26 # include <boost/preprocessor/facilities/identity.hpp>
Chris@101 27 # else
Chris@16 28 # include <boost/preprocessor/cat.hpp>
Chris@16 29 # include <boost/preprocessor/detail/split.hpp>
Chris@101 30 # endif
Chris@16 31 #
Chris@16 32 # /* BOOST_PP_IS_EMPTY */
Chris@16 33 #
Chris@16 34 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC() && ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
Chris@16 35 # define BOOST_PP_IS_EMPTY(x) BOOST_PP_IS_EMPTY_I(x BOOST_PP_IS_EMPTY_HELPER)
Chris@16 36 # define BOOST_PP_IS_EMPTY_I(contents) BOOST_PP_TUPLE_ELEM(2, 1, (BOOST_PP_IS_EMPTY_DEF_ ## contents()))
Chris@101 37 # define BOOST_PP_IS_EMPTY_DEF_BOOST_PP_IS_EMPTY_HELPER 1, BOOST_PP_IDENTITY(1)
Chris@16 38 # define BOOST_PP_IS_EMPTY_HELPER() , 0
Chris@16 39 # else
Chris@16 40 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
Chris@16 41 # define BOOST_PP_IS_EMPTY(x) BOOST_PP_IS_EMPTY_I(BOOST_PP_IS_EMPTY_HELPER x ())
Chris@16 42 # define BOOST_PP_IS_EMPTY_I(test) BOOST_PP_IS_EMPTY_II(BOOST_PP_SPLIT(0, BOOST_PP_CAT(BOOST_PP_IS_EMPTY_DEF_, test)))
Chris@16 43 # define BOOST_PP_IS_EMPTY_II(id) id
Chris@16 44 # else
Chris@16 45 # define BOOST_PP_IS_EMPTY(x) BOOST_PP_IS_EMPTY_I((BOOST_PP_IS_EMPTY_HELPER x ()))
Chris@16 46 # define BOOST_PP_IS_EMPTY_I(par) BOOST_PP_IS_EMPTY_II ## par
Chris@16 47 # define BOOST_PP_IS_EMPTY_II(test) BOOST_PP_SPLIT(0, BOOST_PP_CAT(BOOST_PP_IS_EMPTY_DEF_, test))
Chris@16 48 # endif
Chris@16 49 # define BOOST_PP_IS_EMPTY_HELPER() 1
Chris@16 50 # define BOOST_PP_IS_EMPTY_DEF_1 1, BOOST_PP_NIL
Chris@16 51 # define BOOST_PP_IS_EMPTY_DEF_BOOST_PP_IS_EMPTY_HELPER 0, BOOST_PP_NIL
Chris@16 52 # endif
Chris@16 53 #
Chris@101 54 # endif /* BOOST_PP_VARIADICS */
Chris@101 55 #
Chris@101 56 # endif /* BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_HPP */