Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2014-10-08 21:05:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:29:46 +0300
commitb7c53102fb0e32ca343a7e782ceb1c2b2a26bf0a (patch)
treedf6cd43de77672f7186d80c77c063727e6ad178d /base/logging.hpp
parent8107068a29d6b5180b4a7c37ac1be2e6de74ab66 (diff)
[core] Fixed LOG macros.
Diffstat (limited to 'base/logging.hpp')
-rw-r--r--base/logging.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/logging.hpp b/base/logging.hpp
index 1add1db6cb..b6b9b345d5 100644
--- a/base/logging.hpp
+++ b/base/logging.hpp
@@ -31,9 +31,9 @@ using ::my::LCRITICAL;
// Logging macro.
// Example usage: LOG(LINFO, (Calc(), m_Var, "Some string constant"));
-#define LOG(level, msg) do { if (level < ::my::g_LogLevel) {} \
+#define LOG(level, msg) do { if ((level) < ::my::g_LogLevel) {} \
else { ::my::LogMessage(level, SRC(), ::my::impl::Message msg);} } while (false)
// Logging macro with short info (without entry point)
-#define LOG_SHORT(level, msg) do { if (level < ::my::g_LogLevel) {} \
+#define LOG_SHORT(level, msg) do { if ((level) < ::my::g_LogLevel) {} \
else { ::my::LogMessage(level, my::SrcPoint(), ::my::impl::Message msg);} } while (false)