summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-04-29 02:44:06 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-04-29 02:44:06 +0000
commitef4d4e27089600c8c86aacb7b4b60051b73ce45e (patch)
treeaa9a487244cd5ee51593e4195c67382f4b47ef2c /cpp
parentf8bf9e0bfdde526ad2a2b5fb5d1f008ee51ac098 (diff)
downloadqpid-python-ef4d4e27089600c8c86aacb7b4b60051b73ce45e.tar.gz
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
Diffstat (limited to 'cpp')
-rw-r--r--cpp/include/qpid/Msg.h4
1 files changed, 3 insertions, 1 deletions
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