From 28970fdd83d8514964cd79e1ef57d4d7db0c0c3d Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 29 Apr 2010 02:44:06 +0000 Subject: Fix previous checkin and correctly quote __LINE__ in QPID_MSG git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@939184 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/include/qpid/Msg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/include') diff --git a/qpid/cpp/include/qpid/Msg.h b/qpid/cpp/include/qpid/Msg.h index a4450eb34c..e1837c29e5 100644 --- a/qpid/cpp/include/qpid/Msg.h +++ b/qpid/cpp/include/qpid/Msg.h @@ -69,7 +69,9 @@ inline std::ostream& operator<<(std::ostream& o, const Msg& m) { } /** Construct a message using operator << and append (file:line) */ -#define QPID_MSG(message) (::qpid::Msg() << message << " (" __FILE__ ":" "##__LINE__##" ")") +#define QUOTE_(x) #x +#define QUOTE(x) QUOTE_(x) +#define QPID_MSG(message) (::qpid::Msg() << message << " (" __FILE__ ":" QUOTE(__LINE__) ")") } // namespace qpid -- cgit v1.2.1