Unverified Commit 7bc23808 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #735 from bazurbat/for-upstream

Wrap KJ_LOG in braces
parents 29c9d443 11ee5380
......@@ -131,7 +131,8 @@ namespace kj {
#define KJ_EXPAND(X) X
#define KJ_LOG(severity, ...) \
if (!::kj::_::Debug::shouldLog(::kj::LogSeverity::severity)) {} else \
for (bool _kj_shouldLog = ::kj::_::Debug::shouldLog(::kj::LogSeverity::severity); \
_kj_shouldLog; _kj_shouldLog = false) \
::kj::_::Debug::log(__FILE__, __LINE__, ::kj::LogSeverity::severity, \
"" #__VA_ARGS__, __VA_ARGS__)
......@@ -210,7 +211,8 @@ namespace kj {
#else
#define KJ_LOG(severity, ...) \
if (!::kj::_::Debug::shouldLog(::kj::LogSeverity::severity)) {} else \
for (bool _kj_shouldLog = ::kj::_::Debug::shouldLog(::kj::LogSeverity::severity); \
_kj_shouldLog; _kj_shouldLog = false) \
::kj::_::Debug::log(__FILE__, __LINE__, ::kj::LogSeverity::severity, \
#__VA_ARGS__, ##__VA_ARGS__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment