]> git.donarmstrong.com Git - rsem.git/blob - boost/preprocessor/seq/seq.hpp
RSEM Source Codes
[rsem.git] / boost / preprocessor / seq / seq.hpp
1 # /* **************************************************************************
2 #  *                                                                          *
3 #  *     (C) Copyright Paul Mensonides 2002.
4 #  *     Distributed under the Boost Software License, Version 1.0. (See
5 #  *     accompanying file LICENSE_1_0.txt or copy at
6 #  *     http://www.boost.org/LICENSE_1_0.txt)
7 #  *                                                                          *
8 #  ************************************************************************** */
9 #
10 # /* See http://www.boost.org for most recent version. */
11 #
12 # ifndef BOOST_PREPROCESSOR_SEQ_SEQ_HPP
13 # define BOOST_PREPROCESSOR_SEQ_SEQ_HPP
14 #
15 # include <boost/preprocessor/config/config.hpp>
16 # include <boost/preprocessor/seq/elem.hpp>
17 #
18 # /* BOOST_PP_SEQ_HEAD */
19 #
20 # define BOOST_PP_SEQ_HEAD(seq) BOOST_PP_SEQ_ELEM(0, seq)
21 #
22 # /* BOOST_PP_SEQ_TAIL */
23 #
24 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
25 #    define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_1((seq))
26 #    define BOOST_PP_SEQ_TAIL_1(par) BOOST_PP_SEQ_TAIL_2 ## par
27 #    define BOOST_PP_SEQ_TAIL_2(seq) BOOST_PP_SEQ_TAIL_I ## seq
28 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
29 #    define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_ID(BOOST_PP_SEQ_TAIL_I seq)
30 #    define BOOST_PP_SEQ_TAIL_ID(id) id
31 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
32 #    define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_D(seq)
33 #    define BOOST_PP_SEQ_TAIL_D(seq) BOOST_PP_SEQ_TAIL_I seq
34 # else
35 #    define BOOST_PP_SEQ_TAIL(seq) BOOST_PP_SEQ_TAIL_I seq
36 # endif
37 #
38 # define BOOST_PP_SEQ_TAIL_I(x)
39 #
40 # /* BOOST_PP_SEQ_NIL */
41 #
42 # define BOOST_PP_SEQ_NIL(x) (x)
43 #
44 # endif