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/seq/transform.hpp@4:bd0c06dd6e92, 2016-02-22 (annotated)
- Committer:
- hideakitai
- Date:
- Mon Feb 22 01:43:48 2016 +0000
- Revision:
- 4:bd0c06dd6e92
- Parent:
- 0:3f9dbf1e2cb0
fix throw error
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_SEQ_TRANSFORM_HPP |
hideakitai | 0:3f9dbf1e2cb0 | 13 | # define MSGPACK_PREPROCESSOR_SEQ_TRANSFORM_HPP |
hideakitai | 0:3f9dbf1e2cb0 | 14 | # |
hideakitai | 0:3f9dbf1e2cb0 | 15 | # include <msgpack/preprocessor/config/config.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 16 | # include <msgpack/preprocessor/seq/fold_left.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 17 | # include <msgpack/preprocessor/seq/seq.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 18 | # include <msgpack/preprocessor/tuple/elem.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 19 | # include <msgpack/preprocessor/tuple/rem.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 20 | # |
hideakitai | 0:3f9dbf1e2cb0 | 21 | # /* MSGPACK_PP_SEQ_TRANSFORM */ |
hideakitai | 0:3f9dbf1e2cb0 | 22 | # |
hideakitai | 0:3f9dbf1e2cb0 | 23 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() |
hideakitai | 0:3f9dbf1e2cb0 | 24 | # define MSGPACK_PP_SEQ_TRANSFORM(op, data, seq) MSGPACK_PP_SEQ_TAIL(MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_SEQ_FOLD_LEFT(MSGPACK_PP_SEQ_TRANSFORM_O, (op, data, (nil)), seq))) |
hideakitai | 0:3f9dbf1e2cb0 | 25 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 26 | # define MSGPACK_PP_SEQ_TRANSFORM(op, data, seq) MSGPACK_PP_SEQ_TRANSFORM_I(op, data, seq) |
hideakitai | 0:3f9dbf1e2cb0 | 27 | # define MSGPACK_PP_SEQ_TRANSFORM_I(op, data, seq) MSGPACK_PP_SEQ_TAIL(MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_SEQ_FOLD_LEFT(MSGPACK_PP_SEQ_TRANSFORM_O, (op, data, (nil)), seq))) |
hideakitai | 0:3f9dbf1e2cb0 | 28 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 29 | # |
hideakitai | 0:3f9dbf1e2cb0 | 30 | # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_STRICT() |
hideakitai | 0:3f9dbf1e2cb0 | 31 | # define MSGPACK_PP_SEQ_TRANSFORM_O(s, state, elem) MSGPACK_PP_SEQ_TRANSFORM_O_IM(s, MSGPACK_PP_TUPLE_REM_3 state, elem) |
hideakitai | 0:3f9dbf1e2cb0 | 32 | # define MSGPACK_PP_SEQ_TRANSFORM_O_IM(s, im, elem) MSGPACK_PP_SEQ_TRANSFORM_O_I(s, im, elem) |
hideakitai | 0:3f9dbf1e2cb0 | 33 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 34 | # define MSGPACK_PP_SEQ_TRANSFORM_O(s, state, elem) MSGPACK_PP_SEQ_TRANSFORM_O_I(s, MSGPACK_PP_TUPLE_ELEM(3, 0, state), MSGPACK_PP_TUPLE_ELEM(3, 1, state), MSGPACK_PP_TUPLE_ELEM(3, 2, state), elem) |
hideakitai | 0:3f9dbf1e2cb0 | 35 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 36 | # |
hideakitai | 0:3f9dbf1e2cb0 | 37 | # define MSGPACK_PP_SEQ_TRANSFORM_O_I(s, op, data, res, elem) (op, data, res (op(s, data, elem))) |
hideakitai | 0:3f9dbf1e2cb0 | 38 | # |
hideakitai | 0:3f9dbf1e2cb0 | 39 | # /* MSGPACK_PP_SEQ_TRANSFORM_S */ |
hideakitai | 0:3f9dbf1e2cb0 | 40 | # |
hideakitai | 0:3f9dbf1e2cb0 | 41 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() |
hideakitai | 0:3f9dbf1e2cb0 | 42 | # define MSGPACK_PP_SEQ_TRANSFORM_S(s, op, data, seq) MSGPACK_PP_SEQ_TAIL(MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_SEQ_FOLD_LEFT_ ## s(MSGPACK_PP_SEQ_TRANSFORM_O, (op, data, (nil)), seq))) |
hideakitai | 0:3f9dbf1e2cb0 | 43 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 44 | # define MSGPACK_PP_SEQ_TRANSFORM_S(s, op, data, seq) MSGPACK_PP_SEQ_TRANSFORM_S_I(s, op, data, seq) |
hideakitai | 0:3f9dbf1e2cb0 | 45 | # define MSGPACK_PP_SEQ_TRANSFORM_S_I(s, op, data, seq) MSGPACK_PP_SEQ_TAIL(MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_SEQ_FOLD_LEFT_ ## s(MSGPACK_PP_SEQ_TRANSFORM_O, (op, data, (nil)), seq))) |
hideakitai | 0:3f9dbf1e2cb0 | 46 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 47 | # |
hideakitai | 0:3f9dbf1e2cb0 | 48 | # endif |