blob: 3c06fe9c7119bf9b7976299ad6283167e144cb31 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001# /* **************************************************************************
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#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070012# ifndef NDNBOOST_PREPROCESSOR_SEQ_SEQ_HPP
13# define NDNBOOST_PREPROCESSOR_SEQ_SEQ_HPP
Jeff Thompsona28eed82013-08-22 16:21:10 -070014#
15# include <ndnboost/preprocessor/config/config.hpp>
16# include <ndnboost/preprocessor/seq/elem.hpp>
17#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070018# /* NDNBOOST_PP_SEQ_HEAD */
Jeff Thompsona28eed82013-08-22 16:21:10 -070019#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070020# define NDNBOOST_PP_SEQ_HEAD(seq) NDNBOOST_PP_SEQ_ELEM(0, seq)
Jeff Thompsona28eed82013-08-22 16:21:10 -070021#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022# /* NDNBOOST_PP_SEQ_TAIL */
Jeff Thompsona28eed82013-08-22 16:21:10 -070023#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070024# if NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_MWCC()
25# define NDNBOOST_PP_SEQ_TAIL(seq) NDNBOOST_PP_SEQ_TAIL_1((seq))
26# define NDNBOOST_PP_SEQ_TAIL_1(par) NDNBOOST_PP_SEQ_TAIL_2 ## par
27# define NDNBOOST_PP_SEQ_TAIL_2(seq) NDNBOOST_PP_SEQ_TAIL_I ## seq
28# elif NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_MSVC()
29# define NDNBOOST_PP_SEQ_TAIL(seq) NDNBOOST_PP_SEQ_TAIL_ID(NDNBOOST_PP_SEQ_TAIL_I seq)
30# define NDNBOOST_PP_SEQ_TAIL_ID(id) id
31# elif NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_EDG()
32# define NDNBOOST_PP_SEQ_TAIL(seq) NDNBOOST_PP_SEQ_TAIL_D(seq)
33# define NDNBOOST_PP_SEQ_TAIL_D(seq) NDNBOOST_PP_SEQ_TAIL_I seq
Jeff Thompsona28eed82013-08-22 16:21:10 -070034# else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070035# define NDNBOOST_PP_SEQ_TAIL(seq) NDNBOOST_PP_SEQ_TAIL_I seq
Jeff Thompsona28eed82013-08-22 16:21:10 -070036# endif
37#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070038# define NDNBOOST_PP_SEQ_TAIL_I(x)
Jeff Thompsona28eed82013-08-22 16:21:10 -070039#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070040# /* NDNBOOST_PP_SEQ_NIL */
Jeff Thompsona28eed82013-08-22 16:21:10 -070041#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070042# define NDNBOOST_PP_SEQ_NIL(x) (x)
Jeff Thompsona28eed82013-08-22 16:21:10 -070043#
44# endif