Files
externals/linux/include/ActivBoost/preprocessor/tuple/size.hpp
T
2023-12-15 13:15:08 -05:00

36 lines
1.8 KiB
C++

# /* **************************************************************************
# * *
# * (C) Copyright Edward Diener 2011. *
# * (C) Copyright Paul Mensonides 2011. *
# * Distributed under the Boost Software License, Version 1.0. (See *
# * accompanying file LICENSE_1_0.txt or copy at *
# * http://www.boost.org/LICENSE_1_0.txt) *
# * *
# ************************************************************************** */
#
# /* See http://www.boost.org for most recent version. */
#
# ifndef ACTIV_BOOST_PREPROCESSOR_TUPLE_SIZE_HPP
# define ACTIV_BOOST_PREPROCESSOR_TUPLE_SIZE_HPP
#
# include <ActivBoost/preprocessor/cat.hpp>
# include <ActivBoost/preprocessor/config/config.hpp>
# include <ActivBoost/preprocessor/control/if.hpp>
# include <ActivBoost/preprocessor/variadic/has_opt.hpp>
# include <ActivBoost/preprocessor/variadic/size.hpp>
#
# if ACTIV_BOOST_PP_VARIADIC_HAS_OPT()
# if ACTIV_BOOST_PP_VARIADICS_MSVC
# define ACTIV_BOOST_PP_TUPLE_SIZE(tuple) ACTIV_BOOST_PP_TUPLE_SIZE_CHECK(ACTIV_BOOST_PP_CAT(ACTIV_BOOST_PP_VARIADIC_SIZE tuple,))
# else
# define ACTIV_BOOST_PP_TUPLE_SIZE(tuple) ACTIV_BOOST_PP_TUPLE_SIZE_CHECK(ACTIV_BOOST_PP_VARIADIC_SIZE tuple)
# endif
# define ACTIV_BOOST_PP_TUPLE_SIZE_CHECK(size) ACTIV_BOOST_PP_IF(size,size,1)
# elif ACTIV_BOOST_PP_VARIADICS_MSVC
# define ACTIV_BOOST_PP_TUPLE_SIZE(tuple) ACTIV_BOOST_PP_CAT(ACTIV_BOOST_PP_VARIADIC_SIZE tuple,)
# else
# define ACTIV_BOOST_PP_TUPLE_SIZE(tuple) ACTIV_BOOST_PP_VARIADIC_SIZE tuple
# endif
#
# endif