revert between 56095 -> 55830 in arch
[AROS.git] / compiler / boost / preprocessor / array / push_front.hpp
bloba6c6dc73de4278d13f741047a65788537760d829
1 # /* **************************************************************************
2 # * *
3 # * (C) Copyright Paul Mensonides 2002.
4 # * (C) Copyright Edward Diener 2014.
5 # * Distributed under the Boost Software License, Version 1.0. (See
6 # * accompanying file LICENSE_1_0.txt or copy at
7 # * http://www.boost.org/LICENSE_1_0.txt)
8 # * *
9 # ************************************************************************** */
11 # /* See http://www.boost.org for most recent version. */
13 # ifndef BOOST_PREPROCESSOR_ARRAY_PUSH_FRONT_HPP
14 # define BOOST_PREPROCESSOR_ARRAY_PUSH_FRONT_HPP
16 # include <boost/preprocessor/arithmetic/inc.hpp>
17 # include <boost/preprocessor/array/data.hpp>
18 # include <boost/preprocessor/array/size.hpp>
19 # include <boost/preprocessor/config/config.hpp>
20 # include <boost/preprocessor/punctuation/comma_if.hpp>
21 # include <boost/preprocessor/tuple/rem.hpp>
22 # include <boost/preprocessor/array/detail/get_data.hpp>
24 # /* BOOST_PP_ARRAY_PUSH_FRONT */
26 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
27 # define BOOST_PP_ARRAY_PUSH_FRONT(array, elem) BOOST_PP_ARRAY_PUSH_FRONT_I(BOOST_PP_ARRAY_SIZE(array), BOOST_PP_ARRAY_DATA(array), elem)
28 # else
29 # define BOOST_PP_ARRAY_PUSH_FRONT(array, elem) BOOST_PP_ARRAY_PUSH_FRONT_D(array, elem)
30 # define BOOST_PP_ARRAY_PUSH_FRONT_D(array, elem) BOOST_PP_ARRAY_PUSH_FRONT_I(BOOST_PP_ARRAY_SIZE(array), BOOST_PP_ARRAY_DATA(array), elem)
31 # endif
33 # define BOOST_PP_ARRAY_PUSH_FRONT_I(size, data, elem) (BOOST_PP_INC(size), (elem BOOST_PP_COMMA_IF(size) BOOST_PP_ARRAY_DETAIL_GET_DATA(size,data)))
35 # endif