diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-05 13:27:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-05 13:27:35 (GMT) |
commit | 33cd40af8a271a8994b4c2fc71395e338779d4dc (patch) | |
tree | 8376cefe8ef0d4391a86359ef35702c573180d2d | |
parent | 41eb680f10fc2c974c89296dfdb5737e686ca85e (diff) | |
download | swift-contrib-33cd40af8a271a8994b4c2fc71395e338779d4dc.zip swift-contrib-33cd40af8a271a8994b4c2fc71395e338779d4dc.tar.bz2 |
__FILE__ should actually work on windows as well.
-rw-r--r-- | Swiften/Base/Log.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Swiften/Base/Log.h b/Swiften/Base/Log.h index afcfe90..5296860 100644 --- a/Swiften/Base/Log.h +++ b/Swiften/Base/Log.h @@ -11,10 +11,5 @@ namespace Swift { extern bool logging; } -#ifndef SWIFTEN_PLATFORM_WINDOWS #define SWIFT_LOG(severity) \ - if (!Swift::logging) {} else std::cerr << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ": " -#else -#define SWIFT_LOG(severity) \ - if (!Swift::logging) {} else std::cerr -#endif + if (!Swift::logging) {} else std::cerr << "[" << #severity << "] " << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ": " |