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# /* See http://www.boost.org for most recent version. */ 11# 12# ifndef MSGPACK_PREPROCESSOR_ARRAY_POP_BACK_HPP 13# define MSGPACK_PREPROCESSOR_ARRAY_POP_BACK_HPP 14# 15# include <msgpack/preprocessor/arithmetic/dec.hpp> 16# include <msgpack/preprocessor/array/elem.hpp> 17# include <msgpack/preprocessor/array/size.hpp> 18# include <msgpack/preprocessor/repetition/enum.hpp> 19# include <msgpack/preprocessor/repetition/deduce_z.hpp> 20# 21# /* MSGPACK_PP_ARRAY_POP_BACK */ 22# 23# define MSGPACK_PP_ARRAY_POP_BACK(array) MSGPACK_PP_ARRAY_POP_BACK_Z(MSGPACK_PP_DEDUCE_Z(), array) 24# 25# /* MSGPACK_PP_ARRAY_POP_BACK_Z */ 26# 27# if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() 28# define MSGPACK_PP_ARRAY_POP_BACK_Z(z, array) MSGPACK_PP_ARRAY_POP_BACK_I(z, MSGPACK_PP_ARRAY_SIZE(array), array) 29# else 30# define MSGPACK_PP_ARRAY_POP_BACK_Z(z, array) MSGPACK_PP_ARRAY_POP_BACK_Z_D(z, array) 31# define MSGPACK_PP_ARRAY_POP_BACK_Z_D(z, array) MSGPACK_PP_ARRAY_POP_BACK_I(z, MSGPACK_PP_ARRAY_SIZE(array), array) 32# endif 33# 34# define MSGPACK_PP_ARRAY_POP_BACK_I(z, size, array) (MSGPACK_PP_DEC(size), (MSGPACK_PP_ENUM_ ## z(MSGPACK_PP_DEC(size), MSGPACK_PP_ARRAY_POP_BACK_M, array))) 35# define MSGPACK_PP_ARRAY_POP_BACK_M(z, n, data) MSGPACK_PP_ARRAY_ELEM(n, data) 36# 37# endif 38