Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPPControlIIf.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_CONTROL_IIF_HPP
28 #define MITK_PREPROCESSOR_CONTROL_IIF_HPP
29 #
30 #include "mitkPPConfig.h"
31 #
32 #if ~MITK_PP_CONFIG_FLAGS() & MITK_PP_CONFIG_MWCC()
33 #define MITK_PP_IIF(bit, t, f) MITK_PP_IIF_I(bit, t, f)
34 #else
35 #define MITK_PP_IIF(bit, t, f) MITK_PP_IIF_OO((bit, t, f))
36 #define MITK_PP_IIF_OO(par) MITK_PP_IIF_I##par
37 #endif
38 #
39 #if ~MITK_PP_CONFIG_FLAGS() & MITK_PP_CONFIG_MSVC()
40 #define MITK_PP_IIF_I(bit, t, f) MITK_PP_IIF_##bit(t, f)
41 #else
42 #define MITK_PP_IIF_I(bit, t, f) MITK_PP_IIF_II(MITK_PP_IIF_##bit(t, f))
43 #define MITK_PP_IIF_II(id) id
44 #endif
45 #
46 #define MITK_PP_IIF_0(t, f) f
47 #define MITK_PP_IIF_1(t, f) t
48 #
49 #endif