summaryrefslogtreecommitdiffstats
path: root/third_party/msgpack/include/msgpack/preprocessor/debug/line.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/msgpack/include/msgpack/preprocessor/debug/line.hpp')
-rw-r--r--third_party/msgpack/include/msgpack/preprocessor/debug/line.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/third_party/msgpack/include/msgpack/preprocessor/debug/line.hpp b/third_party/msgpack/include/msgpack/preprocessor/debug/line.hpp
new file mode 100644
index 0000000000..e712a0f080
--- /dev/null
+++ b/third_party/msgpack/include/msgpack/preprocessor/debug/line.hpp
@@ -0,0 +1,35 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# ifndef MSGPACK_PREPROCESSOR_DEBUG_LINE_HPP
+# define MSGPACK_PREPROCESSOR_DEBUG_LINE_HPP
+#
+# include <msgpack/preprocessor/cat.hpp>
+# include <msgpack/preprocessor/config/config.hpp>
+# include <msgpack/preprocessor/iteration/iterate.hpp>
+# include <msgpack/preprocessor/stringize.hpp>
+#
+# /* MSGPACK_PP_LINE */
+#
+# if MSGPACK_PP_CONFIG_EXTENDED_LINE_INFO
+# define MSGPACK_PP_LINE(line, file) line MSGPACK_PP_CAT(MSGPACK_PP_LINE_, MSGPACK_PP_IS_ITERATING)(file)
+# define MSGPACK_PP_LINE_MSGPACK_PP_IS_ITERATING(file) #file
+# define MSGPACK_PP_LINE_1(file) MSGPACK_PP_STRINGIZE(file MSGPACK_PP_CAT(MSGPACK_PP_LINE_I_, MSGPACK_PP_ITERATION_DEPTH())())
+# define MSGPACK_PP_LINE_I_1() [MSGPACK_PP_FRAME_ITERATION(1)]
+# define MSGPACK_PP_LINE_I_2() MSGPACK_PP_LINE_I_1()[MSGPACK_PP_FRAME_ITERATION(2)]
+# define MSGPACK_PP_LINE_I_3() MSGPACK_PP_LINE_I_2()[MSGPACK_PP_FRAME_ITERATION(3)]
+# define MSGPACK_PP_LINE_I_4() MSGPACK_PP_LINE_I_3()[MSGPACK_PP_FRAME_ITERATION(4)]
+# define MSGPACK_PP_LINE_I_5() MSGPACK_PP_LINE_I_4()[MSGPACK_PP_FRAME_ITERATION(5)]
+# else
+# define MSGPACK_PP_LINE(line, file) line __FILE__
+# endif
+#
+# endif