forked from lix-project/lix
Macro hygiene
This commit is contained in:
parent
3b7e00ce22
commit
c0d1354b7d
1 changed files with 3 additions and 2 deletions
|
@ -191,8 +191,9 @@ extern Verbosity verbosity; /* suppress msgs > this */
|
|||
arguments are evaluated lazily. */
|
||||
#define printMsg(level, args...) \
|
||||
do { \
|
||||
if (level <= nix::verbosity) { \
|
||||
logger->log(level, fmt(args)); \
|
||||
auto __lvl = level; \
|
||||
if (__lvl <= nix::verbosity) { \
|
||||
logger->log(__lvl, fmt(args)); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue