Files
boost_preprocessor/include/boost/preprocessor/seq/to_array.hpp

29 lines
1.2 KiB
C++
Raw Normal View History

2002-10-13 06:11:19 +00:00
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * 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)
2002-10-13 06:11:19 +00:00
# * *
# ************************************************************************** */
#
# /* See http://www.boost.org for most recent version. */
#
2002-11-07 23:16:43 +00:00
# ifndef BOOST_PREPROCESSOR_SEQ_TO_ARRAY_HPP
# define BOOST_PREPROCESSOR_SEQ_TO_ARRAY_HPP
2002-10-13 06:11:19 +00:00
#
# include <boost/preprocessor/config/config.hpp>
2002-11-07 23:16:43 +00:00
# include <boost/preprocessor/seq/enum.hpp>
# include <boost/preprocessor/seq/size.hpp>
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# /* BOOST_PP_SEQ_TO_ARRAY */
2002-10-13 06:11:19 +00:00
#
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TO_ARRAY(seq) (BOOST_PP_SEQ_SIZE(seq), (BOOST_PP_SEQ_ENUM(seq)))
2002-10-13 06:11:19 +00:00
# else
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TO_ARRAY(seq) BOOST_PP_SEQ_TO_ARRAY_I(seq)
# define BOOST_PP_SEQ_TO_ARRAY_I(seq) (BOOST_PP_SEQ_SIZE(seq), (BOOST_PP_SEQ_ENUM(seq)))
2002-10-13 06:11:19 +00:00
# endif
#
# endif