Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello_message_pack
include/msgpack/preprocessor/array/remove.hpp@0:3f9dbf1e2cb0, 2016-02-13 (annotated)
- Committer:
- hideakitai
- Date:
- Sat Feb 13 01:53:11 2016 +0000
- Revision:
- 0:3f9dbf1e2cb0
first commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| hideakitai | 0:3f9dbf1e2cb0 | 1 | # /* ************************************************************************** |
| hideakitai | 0:3f9dbf1e2cb0 | 2 | # * * |
| hideakitai | 0:3f9dbf1e2cb0 | 3 | # * (C) Copyright Paul Mensonides 2002. |
| hideakitai | 0:3f9dbf1e2cb0 | 4 | # * Distributed under the Boost Software License, Version 1.0. (See |
| hideakitai | 0:3f9dbf1e2cb0 | 5 | # * accompanying file LICENSE_1_0.txt or copy at |
| hideakitai | 0:3f9dbf1e2cb0 | 6 | # * http://www.boost.org/LICENSE_1_0.txt) |
| hideakitai | 0:3f9dbf1e2cb0 | 7 | # * * |
| hideakitai | 0:3f9dbf1e2cb0 | 8 | # ************************************************************************** */ |
| hideakitai | 0:3f9dbf1e2cb0 | 9 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 10 | # /* See http://www.boost.org for most recent version. */ |
| hideakitai | 0:3f9dbf1e2cb0 | 11 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 12 | # ifndef MSGPACK_PREPROCESSOR_ARRAY_REMOVE_HPP |
| hideakitai | 0:3f9dbf1e2cb0 | 13 | # define MSGPACK_PREPROCESSOR_ARRAY_REMOVE_HPP |
| hideakitai | 0:3f9dbf1e2cb0 | 14 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 15 | # include <msgpack/preprocessor/arithmetic/inc.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 16 | # include <msgpack/preprocessor/array/elem.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 17 | # include <msgpack/preprocessor/array/push_back.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 18 | # include <msgpack/preprocessor/array/size.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 19 | # include <msgpack/preprocessor/comparison/not_equal.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 20 | # include <msgpack/preprocessor/control/deduce_d.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 21 | # include <msgpack/preprocessor/control/iif.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 22 | # include <msgpack/preprocessor/control/while.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 23 | # include <msgpack/preprocessor/tuple/eat.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 24 | # include <msgpack/preprocessor/tuple/elem.hpp> |
| hideakitai | 0:3f9dbf1e2cb0 | 25 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 26 | # /* MSGPACK_PP_ARRAY_REMOVE */ |
| hideakitai | 0:3f9dbf1e2cb0 | 27 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 28 | # define MSGPACK_PP_ARRAY_REMOVE(array, i) MSGPACK_PP_ARRAY_REMOVE_I(MSGPACK_PP_DEDUCE_D(), array, i) |
| hideakitai | 0:3f9dbf1e2cb0 | 29 | # define MSGPACK_PP_ARRAY_REMOVE_I(d, array, i) MSGPACK_PP_ARRAY_REMOVE_D(d, array, i) |
| hideakitai | 0:3f9dbf1e2cb0 | 30 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 31 | # /* MSGPACK_PP_ARRAY_REMOVE_D */ |
| hideakitai | 0:3f9dbf1e2cb0 | 32 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 33 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() |
| hideakitai | 0:3f9dbf1e2cb0 | 34 | # define MSGPACK_PP_ARRAY_REMOVE_D(d, array, i) MSGPACK_PP_TUPLE_ELEM(4, 2, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_ARRAY_REMOVE_P, MSGPACK_PP_ARRAY_REMOVE_O, (0, i, (0, ()), array))) |
| hideakitai | 0:3f9dbf1e2cb0 | 35 | # else |
| hideakitai | 0:3f9dbf1e2cb0 | 36 | # define MSGPACK_PP_ARRAY_REMOVE_D(d, array, i) MSGPACK_PP_ARRAY_REMOVE_D_I(d, array, i) |
| hideakitai | 0:3f9dbf1e2cb0 | 37 | # define MSGPACK_PP_ARRAY_REMOVE_D_I(d, array, i) MSGPACK_PP_TUPLE_ELEM(4, 2, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_ARRAY_REMOVE_P, MSGPACK_PP_ARRAY_REMOVE_O, (0, i, (0, ()), array))) |
| hideakitai | 0:3f9dbf1e2cb0 | 38 | # endif |
| hideakitai | 0:3f9dbf1e2cb0 | 39 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 40 | # define MSGPACK_PP_ARRAY_REMOVE_P(d, st) MSGPACK_PP_NOT_EQUAL(MSGPACK_PP_TUPLE_ELEM(4, 0, st), MSGPACK_PP_ARRAY_SIZE(MSGPACK_PP_TUPLE_ELEM(4, 3, st))) |
| hideakitai | 0:3f9dbf1e2cb0 | 41 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 42 | # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_STRICT() |
| hideakitai | 0:3f9dbf1e2cb0 | 43 | # define MSGPACK_PP_ARRAY_REMOVE_O(d, st) MSGPACK_PP_ARRAY_REMOVE_O_I st |
| hideakitai | 0:3f9dbf1e2cb0 | 44 | # else |
| hideakitai | 0:3f9dbf1e2cb0 | 45 | # define MSGPACK_PP_ARRAY_REMOVE_O(d, st) MSGPACK_PP_ARRAY_REMOVE_O_I(MSGPACK_PP_TUPLE_ELEM(4, 0, st), MSGPACK_PP_TUPLE_ELEM(4, 1, st), MSGPACK_PP_TUPLE_ELEM(4, 2, st), MSGPACK_PP_TUPLE_ELEM(4, 3, st)) |
| hideakitai | 0:3f9dbf1e2cb0 | 46 | # endif |
| hideakitai | 0:3f9dbf1e2cb0 | 47 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 48 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_DMC() |
| hideakitai | 0:3f9dbf1e2cb0 | 49 | # define MSGPACK_PP_ARRAY_REMOVE_O_I(n, i, res, arr) (MSGPACK_PP_INC(n), i, MSGPACK_PP_IIF(MSGPACK_PP_NOT_EQUAL(n, i), MSGPACK_PP_ARRAY_PUSH_BACK, res MSGPACK_PP_TUPLE_EAT_2)(res, MSGPACK_PP_ARRAY_ELEM(n, arr)), arr) |
| hideakitai | 0:3f9dbf1e2cb0 | 50 | # else |
| hideakitai | 0:3f9dbf1e2cb0 | 51 | # define MSGPACK_PP_ARRAY_REMOVE_O_I(n, i, res, arr) (MSGPACK_PP_INC(n), i, MSGPACK_PP_IIF(MSGPACK_PP_NOT_EQUAL(n, i), MSGPACK_PP_ARRAY_PUSH_BACK, MSGPACK_PP_TUPLE_ELEM_2_0)(res, MSGPACK_PP_ARRAY_ELEM(n, arr)), arr) |
| hideakitai | 0:3f9dbf1e2cb0 | 52 | # endif |
| hideakitai | 0:3f9dbf1e2cb0 | 53 | # |
| hideakitai | 0:3f9dbf1e2cb0 | 54 | # endif |