1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/preprocessor/control/iif.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,34 @@
1.4 +# /* **************************************************************************
1.5 +# * *
1.6 +# * (C) Copyright Paul Mensonides 2002.
1.7 +# * Distributed under the Boost Software License, Version 1.0. (See
1.8 +# * accompanying file LICENSE_1_0.txt or copy at
1.9 +# * http://www.boost.org/LICENSE_1_0.txt)
1.10 +# * *
1.11 +# ************************************************************************** */
1.12 +#
1.13 +# /* See http://www.boost.org for most recent version. */
1.14 +#
1.15 +# ifndef BOOST_PREPROCESSOR_CONTROL_IIF_HPP
1.16 +# define BOOST_PREPROCESSOR_CONTROL_IIF_HPP
1.17 +#
1.18 +# include <boost/preprocessor/config/config.hpp>
1.19 +#
1.20 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
1.21 +# define BOOST_PP_IIF(bit, t, f) BOOST_PP_IIF_I(bit, t, f)
1.22 +# else
1.23 +# define BOOST_PP_IIF(bit, t, f) BOOST_PP_IIF_OO((bit, t, f))
1.24 +# define BOOST_PP_IIF_OO(par) BOOST_PP_IIF_I ## par
1.25 +# endif
1.26 +#
1.27 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
1.28 +# define BOOST_PP_IIF_I(bit, t, f) BOOST_PP_IIF_ ## bit(t, f)
1.29 +# else
1.30 +# define BOOST_PP_IIF_I(bit, t, f) BOOST_PP_IIF_II(BOOST_PP_IIF_ ## bit(t, f))
1.31 +# define BOOST_PP_IIF_II(id) id
1.32 +# endif
1.33 +#
1.34 +# define BOOST_PP_IIF_0(t, f) f
1.35 +# define BOOST_PP_IIF_1(t, f) t
1.36 +#
1.37 +# endif