Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPPSeq.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #/* **************************************************************************
17 # * *
18 # * (C) Copyright Paul Mensonides 2002.
19 # * Distributed under the Boost Software License, Version 1.0. (See
20 # * accompanying file LICENSE_1_0.txt or copy at
21 # * http://www.boost.org/LICENSE_1_0.txt)
22 # * *
23 # ************************************************************************** */
24 #
25 #/* See http://www.boost.org for most recent version. */
26 #
27 #ifndef MITK_PREPROCESSOR_SEQ_SEQ_HPP
28 #define MITK_PREPROCESSOR_SEQ_SEQ_HPP
29 #
30 #include "mitkPPConfig.h"
31 #include "mitkPPSeqElem.h"
32 #
33 #/* MITK_PP_SEQ_HEAD */
34 #
35 #define MITK_PP_SEQ_HEAD(seq) MITK_PP_SEQ_ELEM(0, seq)
36 #
37 #/* MITK_PP_SEQ_TAIL */
38 #
39 #if MITK_PP_CONFIG_FLAGS() & MITK_PP_CONFIG_MWCC()
40 #define MITK_PP_SEQ_TAIL(seq) MITK_PP_SEQ_TAIL_1((seq))
41 #define MITK_PP_SEQ_TAIL_1(par) MITK_PP_SEQ_TAIL_2##par
42 #define MITK_PP_SEQ_TAIL_2(seq) MITK_PP_SEQ_TAIL_I##seq
43 #elif MITK_PP_CONFIG_FLAGS() & MITK_PP_CONFIG_MSVC()
44 #define MITK_PP_SEQ_TAIL(seq) MITK_PP_SEQ_TAIL_ID(MITK_PP_SEQ_TAIL_I seq)
45 #define MITK_PP_SEQ_TAIL_ID(id) id
46 #elif MITK_PP_CONFIG_FLAGS() & MITK_PP_CONFIG_EDG()
47 #define MITK_PP_SEQ_TAIL(seq) MITK_PP_SEQ_TAIL_D(seq)
48 #define MITK_PP_SEQ_TAIL_D(seq) MITK_PP_SEQ_TAIL_I seq
49 #else
50 #define MITK_PP_SEQ_TAIL(seq) MITK_PP_SEQ_TAIL_I seq
51 #endif
52 #
53 #define MITK_PP_SEQ_TAIL_I(x)
54 #
55 #/* MITK_PP_SEQ_NIL */
56 #
57 #define MITK_PP_SEQ_NIL(x) (x)
58 #
59 #endif