mirror of
https://github.com/NixOS/nix.git
synced 2024-11-29 10:12:28 +00:00
Macro hygiene
This commit is contained in:
parent
3b7e00ce22
commit
c0d1354b7d
@ -191,8 +191,9 @@ extern Verbosity verbosity; /* suppress msgs > this */
|
|||||||
arguments are evaluated lazily. */
|
arguments are evaluated lazily. */
|
||||||
#define printMsg(level, args...) \
|
#define printMsg(level, args...) \
|
||||||
do { \
|
do { \
|
||||||
if (level <= nix::verbosity) { \
|
auto __lvl = level; \
|
||||||
logger->log(level, fmt(args)); \
|
if (__lvl <= nix::verbosity) { \
|
||||||
|
logger->log(__lvl, fmt(args)); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user