# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt or copy at # * http://www.boost.org/LICENSE_1_0.txt) # * * # ************************************************************************** */ # # /* See http://www.boost.org for most recent version. */ # # ifndef ACTIV_BOOST_PREPROCESSOR_SEQ_REVERSE_HPP # define ACTIV_BOOST_PREPROCESSOR_SEQ_REVERSE_HPP # # include # include # include # # /* ACTIV_BOOST_PP_SEQ_REVERSE */ # # if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG() # define ACTIV_BOOST_PP_SEQ_REVERSE(seq) ACTIV_BOOST_PP_SEQ_FOLD_LEFT(ACTIV_BOOST_PP_SEQ_REVERSE_O, ACTIV_BOOST_PP_EMPTY, seq)() # else # define ACTIV_BOOST_PP_SEQ_REVERSE(seq) ACTIV_BOOST_PP_SEQ_REVERSE_I(seq) # define ACTIV_BOOST_PP_SEQ_REVERSE_I(seq) ACTIV_BOOST_PP_SEQ_FOLD_LEFT(ACTIV_BOOST_PP_SEQ_REVERSE_O, ACTIV_BOOST_PP_EMPTY, seq)() # endif # # define ACTIV_BOOST_PP_SEQ_REVERSE_O(s, state, elem) (elem) state # # /* ACTIV_BOOST_PP_SEQ_REVERSE_S */ # # if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG() # define ACTIV_BOOST_PP_SEQ_REVERSE_S(s, seq) ACTIV_BOOST_PP_SEQ_FOLD_LEFT_ ## s(ACTIV_BOOST_PP_SEQ_REVERSE_O, ACTIV_BOOST_PP_EMPTY, seq)() # else # define ACTIV_BOOST_PP_SEQ_REVERSE_S(s, seq) ACTIV_BOOST_PP_SEQ_REVERSE_S_I(s, seq) # define ACTIV_BOOST_PP_SEQ_REVERSE_S_I(s, seq) ACTIV_BOOST_PP_SEQ_FOLD_LEFT_ ## s(ACTIV_BOOST_PP_SEQ_REVERSE_O, ACTIV_BOOST_PP_EMPTY, seq)() # endif # # endif