source: NonGTP/Boost/boost/preprocessor/detail/split.hpp @ 857

Revision 857, 1.5 KB checked in by igarcia, 19 years ago (diff)
RevLine 
[857]1# /* **************************************************************************
2#  *                                                                          *
3#  *     (C) Copyright Paul Mensonides 2002.
4#  *     Distributed under the Boost Software License, Version 1.0. (See
5#  *     accompanying file LICENSE_1_0.txt or copy at
6#  *     http://www.boost.org/LICENSE_1_0.txt)
7#  *                                                                          *
8#  ************************************************************************** */
9#
10# ifndef BOOST_PREPROCESSOR_DETAIL_SPLIT_HPP
11# define BOOST_PREPROCESSOR_DETAIL_SPLIT_HPP
12#
13# include <boost/preprocessor/config/config.hpp>
14#
15# /* BOOST_PP_SPLIT */
16#
17# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
18#    define BOOST_PP_SPLIT(n, im) BOOST_PP_SPLIT_I((n, im))
19#    define BOOST_PP_SPLIT_I(par) BOOST_PP_SPLIT_II ## par
20#    define BOOST_PP_SPLIT_II(n, a, b) BOOST_PP_SPLIT_ ## n(a, b)
21# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
22#    define BOOST_PP_SPLIT(n, im) BOOST_PP_SPLIT_I(n((im)))
23#    define BOOST_PP_SPLIT_I(n) BOOST_PP_SPLIT_ID(BOOST_PP_SPLIT_II_ ## n)
24#    define BOOST_PP_SPLIT_II_0(s) BOOST_PP_SPLIT_ID(BOOST_PP_SPLIT_0 s)
25#    define BOOST_PP_SPLIT_II_1(s) BOOST_PP_SPLIT_ID(BOOST_PP_SPLIT_1 s)
26#    define BOOST_PP_SPLIT_ID(id) id
27# else
28#    define BOOST_PP_SPLIT(n, im) BOOST_PP_SPLIT_I(n)(im)
29#    define BOOST_PP_SPLIT_I(n) BOOST_PP_SPLIT_ ## n
30# endif
31#
32# define BOOST_PP_SPLIT_0(a, b) a
33# define BOOST_PP_SPLIT_1(a, b) b
34#
35# endif
Note: See TracBrowser for help on using the repository browser.