1
# /* **************************************************************************
3
# * (C) Copyright Paul Mensonides 2002. Permission to copy, use, *
4
# * modify, sell, and distribute this software is granted provided *
5
# * this copyright notice appears in all copies. This software is *
6
# * provided "as is" without express or implied warranty, and with *
7
# * no claim at to its suitability for any purpose. *
9
# ************************************************************************** */
11
# /* See http://www.boost.org for most recent version. */
13
# ifndef BOOST_PREPROCESSOR_SEQ_INSERT_HPP
14
# define BOOST_PREPROCESSOR_SEQ_INSERT_HPP
16
# include <boost/preprocessor/config/config.hpp>
17
# include <boost/preprocessor/seq/first_n.hpp>
18
# include <boost/preprocessor/seq/rest_n.hpp>
20
# /* BOOST_PP_SEQ_INSERT */
22
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
23
# define BOOST_PP_SEQ_INSERT(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N(i, seq)
25
# define BOOST_PP_SEQ_INSERT(seq, i, elem) BOOST_PP_SEQ_INSERT_I(seq, i, elem)
26
# define BOOST_PP_SEQ_INSERT_I(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REST_N(i, seq)