messagepack implementation for embedded systems (mbed / arduino)

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers line.hpp Source File

line.hpp

00001 # /* **************************************************************************
00002 #  *                                                                          *
00003 #  *     (C) Copyright Paul Mensonides 2002.
00004 #  *     Distributed under the Boost Software License, Version 1.0. (See
00005 #  *     accompanying file LICENSE_1_0.txt or copy at
00006 #  *     http://www.boost.org/LICENSE_1_0.txt)
00007 #  *                                                                          *
00008 #  ************************************************************************** */
00009 #
00010 # /* See http://www.boost.org for most recent version. */
00011 #
00012 # ifndef MSGPACK_PREPROCESSOR_DEBUG_LINE_HPP
00013 # define MSGPACK_PREPROCESSOR_DEBUG_LINE_HPP
00014 #
00015 # include <msgpack/preprocessor/cat.hpp>
00016 # include <msgpack/preprocessor/config/config.hpp>
00017 # include <msgpack/preprocessor/iteration/iterate.hpp>
00018 # include <msgpack/preprocessor/stringize.hpp>
00019 #
00020 # /* MSGPACK_PP_LINE */
00021 #
00022 # if MSGPACK_PP_CONFIG_EXTENDED_LINE_INFO
00023 #    define MSGPACK_PP_LINE(line, file) line MSGPACK_PP_CAT(MSGPACK_PP_LINE_, MSGPACK_PP_IS_ITERATING)(file)
00024 #    define MSGPACK_PP_LINE_MSGPACK_PP_IS_ITERATING(file) #file
00025 #    define MSGPACK_PP_LINE_1(file) MSGPACK_PP_STRINGIZE(file MSGPACK_PP_CAT(MSGPACK_PP_LINE_I_, MSGPACK_PP_ITERATION_DEPTH())())
00026 #    define MSGPACK_PP_LINE_I_1() [MSGPACK_PP_FRAME_ITERATION(1)]
00027 #    define MSGPACK_PP_LINE_I_2() MSGPACK_PP_LINE_I_1()[MSGPACK_PP_FRAME_ITERATION(2)]
00028 #    define MSGPACK_PP_LINE_I_3() MSGPACK_PP_LINE_I_2()[MSGPACK_PP_FRAME_ITERATION(3)]
00029 #    define MSGPACK_PP_LINE_I_4() MSGPACK_PP_LINE_I_3()[MSGPACK_PP_FRAME_ITERATION(4)]
00030 #    define MSGPACK_PP_LINE_I_5() MSGPACK_PP_LINE_I_4()[MSGPACK_PP_FRAME_ITERATION(5)]
00031 # else
00032 #    define MSGPACK_PP_LINE(line, file) line __FILE__
00033 # endif
00034 #
00035 # endif