epoc32/include/stdapis/boost/preprocessor/repetition/enum_params.hpp
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/preprocessor/repetition/enum_params.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +# /* Copyright (C) 2001
     1.5 +#  * Housemarque Oy
     1.6 +#  * http://www.housemarque.com
     1.7 +#  *
     1.8 +#  * Distributed under the Boost Software License, Version 1.0. (See
     1.9 +#  * accompanying file LICENSE_1_0.txt or copy at
    1.10 +#  * http://www.boost.org/LICENSE_1_0.txt)
    1.11 +#  */
    1.12 +#
    1.13 +# /* Revised by Paul Mensonides (2002) */
    1.14 +#
    1.15 +# /* See http://www.boost.org for most recent version. */
    1.16 +#
    1.17 +# ifndef BOOST_PREPROCESSOR_REPETITION_ENUM_PARAMS_HPP
    1.18 +# define BOOST_PREPROCESSOR_REPETITION_ENUM_PARAMS_HPP
    1.19 +#
    1.20 +# include <boost/preprocessor/config/config.hpp>
    1.21 +# include <boost/preprocessor/punctuation/comma_if.hpp>
    1.22 +# include <boost/preprocessor/repetition/repeat.hpp>
    1.23 +#
    1.24 +# /* BOOST_PP_ENUM_PARAMS */
    1.25 +#
    1.26 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.27 +#    define BOOST_PP_ENUM_PARAMS(count, param) BOOST_PP_REPEAT(count, BOOST_PP_ENUM_PARAMS_M, param)
    1.28 +# else
    1.29 +#    define BOOST_PP_ENUM_PARAMS(count, param) BOOST_PP_ENUM_PARAMS_I(count, param)
    1.30 +#    define BOOST_PP_ENUM_PARAMS_I(count, param) BOOST_PP_REPEAT(count, BOOST_PP_ENUM_PARAMS_M, param)
    1.31 +# endif
    1.32 +#
    1.33 +# define BOOST_PP_ENUM_PARAMS_M(z, n, param) BOOST_PP_COMMA_IF(n) param ## n
    1.34 +#
    1.35 +# /* BOOST_PP_ENUM_PARAMS_Z */
    1.36 +#
    1.37 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.38 +#    define BOOST_PP_ENUM_PARAMS_Z(z, count, param) BOOST_PP_REPEAT_ ## z(count, BOOST_PP_ENUM_PARAMS_M, param)
    1.39 +# else
    1.40 +#    define BOOST_PP_ENUM_PARAMS_Z(z, count, param) BOOST_PP_ENUM_PARAMS_Z_I(z, count, param)
    1.41 +#    define BOOST_PP_ENUM_PARAMS_Z_I(z, count, param) BOOST_PP_REPEAT_ ## z(count, BOOST_PP_ENUM_PARAMS_M, param)
    1.42 +# endif
    1.43 +#
    1.44 +# endif