messagepack implementation for embedded systems (mbed / arduino)

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mod.hpp Source File

mod.hpp

00001 # /* Copyright (C) 2001
00002 #  * Housemarque Oy
00003 #  * http://www.housemarque.com
00004 #  *
00005 #  * Distributed under the Boost Software License, Version 1.0. (See
00006 #  * accompanying file LICENSE_1_0.txt or copy at
00007 #  * http://www.boost.org/LICENSE_1_0.txt)
00008 #  */
00009 #
00010 # /* Revised by Paul Mensonides (2002) */
00011 #
00012 # /* See http://www.boost.org for most recent version. */
00013 #
00014 # ifndef MSGPACK_PREPROCESSOR_ARITHMETIC_MOD_HPP
00015 # define MSGPACK_PREPROCESSOR_ARITHMETIC_MOD_HPP
00016 #
00017 # include <msgpack/preprocessor/arithmetic/detail/div_base.hpp>
00018 # include <msgpack/preprocessor/config/config.hpp>
00019 # include <msgpack/preprocessor/tuple/elem.hpp>
00020 #
00021 # /* MSGPACK_PP_MOD */
00022 #
00023 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
00024 #    define MSGPACK_PP_MOD(x, y) MSGPACK_PP_TUPLE_ELEM(3, 1, MSGPACK_PP_DIV_BASE(x, y))
00025 # else
00026 #    define MSGPACK_PP_MOD(x, y) MSGPACK_PP_MOD_I(x, y)
00027 #    define MSGPACK_PP_MOD_I(x, y) MSGPACK_PP_TUPLE_ELEM(3, 1, MSGPACK_PP_DIV_BASE(x, y))
00028 # endif
00029 #
00030 # /* MSGPACK_PP_MOD_D */
00031 #
00032 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
00033 #    define MSGPACK_PP_MOD_D(d, x, y) MSGPACK_PP_TUPLE_ELEM(3, 1, MSGPACK_PP_DIV_BASE_D(d, x, y))
00034 # else
00035 #    define MSGPACK_PP_MOD_D(d, x, y) MSGPACK_PP_MOD_D_I(d, x, y)
00036 #    define MSGPACK_PP_MOD_D_I(d, x, y) MSGPACK_PP_TUPLE_ELEM(3, 1, MSGPACK_PP_DIV_BASE_D(d, x, y))
00037 # endif
00038 #
00039 # endif