From ef4d4e27089600c8c86aacb7b4b60051b73ce45e 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/qpid@939184 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/Msg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/include/qpid/Msg.h b/cpp/include/qpid/Msg.h index a4450eb34c..e1837c29e5 100644 --- a/cpp/include/qpid/Msg.h +++ b/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