diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-04-29 02:44:06 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-04-29 02:44:06 +0000 |
| commit | 28970fdd83d8514964cd79e1ef57d4d7db0c0c3d (patch) | |
| tree | 4cb7677b0b4b2409d460bdbc55e552d5194d2f89 /qpid | |
| parent | 256335fe025a3ea57f3c56bfac7c143d4cafd326 (diff) | |
| download | qpid-python-28970fdd83d8514964cd79e1ef57d4d7db0c0c3d.tar.gz | |
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
Diffstat (limited to 'qpid')
| -rw-r--r-- | qpid/cpp/include/qpid/Msg.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
