mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-17 16:31:27 -04:00
fix(logger): wrap macro argument in parentheses
This commit is contained in:
parent
9e0860d5bf
commit
42a904d4cd
@ -335,8 +335,8 @@ class log_proxy {
|
||||
#define LOG_DETAIL_LEVEL(level, lgr, method) \
|
||||
if constexpr (std::decay_t<decltype(lgr)>::policy_is_enabled_for( \
|
||||
::dwarfs::logger::level)) \
|
||||
if (lgr.logger_is_enabled_for(::dwarfs::logger::level)) \
|
||||
lgr.method(std::source_location::current())
|
||||
if ((lgr).logger_is_enabled_for(::dwarfs::logger::level)) \
|
||||
(lgr).method(std::source_location::current())
|
||||
|
||||
#define LOG_PROXY(policy, lgr) ::dwarfs::log_proxy<policy> log_(lgr)
|
||||
#define LOG_PROXY_DECL(policy) ::dwarfs::log_proxy<policy> log_
|
||||
|
Loading…
x
Reference in New Issue
Block a user