Files
boost_preprocessor/include/boost/preprocessor/seq/insert.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_INSERT_HPP
# define BOOST_PREPROCESSOR_SEQ_INSERT_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/first_n.hpp>
# include <boost/preprocessor/seq/rest_n.hpp>
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# /* BOOST_PP_SEQ_INSERT */
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_INSERT(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N(i, seq)
2002-10-13 06:11:19 +00:00
# else
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_INSERT(seq, i, elem) BOOST_PP_SEQ_INSERT_I(seq, i, elem)
# define BOOST_PP_SEQ_INSERT_I(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N(i, seq)
2002-10-13 06:11:19 +00:00
# endif
#
# endif