1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- # /* Copyright (C) 2001
- # * Housemarque Oy
- # * http://www.housemarque.com
- # *
- # * Distributed under the Boost Software License, Version 1.0.
- # */
- #
- # /* Revised by Paul Mensonides (2002) */
- #
- # /* See http://www.boost.org for most recent version. */
- #
- # ifndef BOOST_PREPROCESSOR_TUPLE_REVERSE_HPP
- # define BOOST_PREPROCESSOR_TUPLE_REVERSE_HPP
- #
- # include <boost/preprocessor/config/config.hpp>
- #
- # /* BOOST_PP_TUPLE_REVERSE */
- #
- # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
- # define BOOST_PP_TUPLE_REVERSE(size, tuple) BOOST_PP_TUPLE_REVERSE_I(size, tuple)
- # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
- # define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_ ## s t
- # else
- # define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_II(BOOST_PP_TUPLE_REVERSE_ ## s t)
- # define BOOST_PP_TUPLE_REVERSE_II(res) res
- # endif
- # else
- # define BOOST_PP_TUPLE_REVERSE(size, tuple) BOOST_PP_TUPLE_REVERSE_OO((size, tuple))
- # define BOOST_PP_TUPLE_REVERSE_OO(par) BOOST_PP_TUPLE_REVERSE_I ## par
- # define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_ ## s ## t
- # endif
- #
- # define BOOST_PP_TUPLE_REVERSE_0
- # define BOOST_PP_TUPLE_REVERSE_1
- # define BOOST_PP_TUPLE_REVERSE_2
- # define BOOST_PP_TUPLE_REVERSE_3
- # define BOOST_PP_TUPLE_REVERSE_4
- # define BOOST_PP_TUPLE_REVERSE_5
- # define BOOST_PP_TUPLE_REVERSE_6
- # define BOOST_PP_TUPLE_REVERSE_7
- # define BOOST_PP_TUPLE_REVERSE_8
- # define BOOST_PP_TUPLE_REVERSE_9
- # define BOOST_PP_TUPLE_REVERSE_10
- # define BOOST_PP_TUPLE_REVERSE_11
- # define BOOST_PP_TUPLE_REVERSE_12
- # define BOOST_PP_TUPLE_REVERSE_13
- # define BOOST_PP_TUPLE_REVERSE_14
- # define BOOST_PP_TUPLE_REVERSE_15
- # define BOOST_PP_TUPLE_REVERSE_16
- # define BOOST_PP_TUPLE_REVERSE_17
- # define BOOST_PP_TUPLE_REVERSE_18
- # define BOOST_PP_TUPLE_REVERSE_19
- # define BOOST_PP_TUPLE_REVERSE_20
- # define BOOST_PP_TUPLE_REVERSE_21
- # define BOOST_PP_TUPLE_REVERSE_22
- # define BOOST_PP_TUPLE_REVERSE_23
- # define BOOST_PP_TUPLE_REVERSE_24
- # define BOOST_PP_TUPLE_REVERSE_25
- #
- # endif
|