1 # /* **************************************************************************
\r
3 # * (C) Copyright Paul Mensonides 2002.
\r
4 # * Distributed under the Boost Software License, Version 1.0. (See
\r
5 # * accompanying file LICENSE_1_0.txt or copy at
\r
6 # * http://www.boost.org/LICENSE_1_0.txt)
\r
8 # ************************************************************************** */
\r
10 # ifndef BOOST_PREPROCESSOR_DETAIL_SPLIT_HPP
\r
11 # define BOOST_PREPROCESSOR_DETAIL_SPLIT_HPP
\r
13 # include <boost/preprocessor/config/config.hpp>
\r
15 # /* BOOST_PP_SPLIT */
\r
17 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
\r
18 # define BOOST_PP_SPLIT(n, im) BOOST_PP_SPLIT_I((n, im))
\r
19 # define BOOST_PP_SPLIT_I(par) BOOST_PP_SPLIT_II ## par
\r
20 # define BOOST_PP_SPLIT_II(n, a, b) BOOST_PP_SPLIT_ ## n(a, b)
\r
21 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
\r
22 # define BOOST_PP_SPLIT(n, im) BOOST_PP_SPLIT_I(n((im)))
\r
23 # define BOOST_PP_SPLIT_I(n) BOOST_PP_SPLIT_ID(BOOST_PP_SPLIT_II_ ## n)
\r
24 # define BOOST_PP_SPLIT_II_0(s) BOOST_PP_SPLIT_ID(BOOST_PP_SPLIT_0 s)
\r
25 # define BOOST_PP_SPLIT_II_1(s) BOOST_PP_SPLIT_ID(BOOST_PP_SPLIT_1 s)
\r
26 # define BOOST_PP_SPLIT_ID(id) id
\r
28 # define BOOST_PP_SPLIT(n, im) BOOST_PP_SPLIT_I(n)(im)
\r
29 # define BOOST_PP_SPLIT_I(n) BOOST_PP_SPLIT_ ## n
\r
32 # define BOOST_PP_SPLIT_0(a, b) a
\r
33 # define BOOST_PP_SPLIT_1(a, b) b
\r