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

46 lines
1.8 KiB
C++
Raw Normal View History

2002-10-13 06:11:19 +00:00
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002. Permission to copy, use, *
# * modify, sell, and distribute this software is granted provided *
# * this copyright notice appears in all copies. This software is *
# * provided "as is" without express or implied warranty, and with *
# * no claim at to its suitability for any purpose. *
# * *
# ************************************************************************** */
#
# /* See http://www.boost.org for most recent version. */
#
2002-11-07 23:16:43 +00:00
# ifndef BOOST_PREPROCESSOR_SEQ_SEQ_HPP
# define BOOST_PREPROCESSOR_SEQ_SEQ_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/elem.hpp>
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# /* BOOST_PP_SEQ_HEAD */
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_HEAD(seq) BOOST_PP_SEQ_ELEM(0, seq)
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# /* BOOST_PP_SEQ_TAIL */
2002-10-13 06:11:19 +00:00
#
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_1((seq))
# define BOOST_PP_SEQ_TAIL_1(par) BOOST_PP_SEQ_TAIL_2 ## par
# define BOOST_PP_SEQ_TAIL_2(seq) BOOST_PP_SEQ_TAIL_I ## seq
2002-10-13 06:11:19 +00:00
# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_ID(BOOST_PP_SEQ_TAIL_I seq)
# define BOOST_PP_SEQ_TAIL_ID(id) id
2002-10-13 06:11:19 +00:00
# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_D(seq)
# define BOOST_PP_SEQ_TAIL_D(seq) BOOST_PP_SEQ_TAIL_I seq
2002-10-13 06:11:19 +00:00
# else
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_I seq
2002-10-13 06:11:19 +00:00
# endif
#
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_TAIL_I(x)
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# /* BOOST_PP_SEQ_NIL */
2002-10-13 06:11:19 +00:00
#
2002-11-07 23:16:43 +00:00
# define BOOST_PP_SEQ_NIL(x) (x)
2002-10-13 06:11:19 +00:00
#
# endif