3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 00:26:38 +00:00

fix IF_LOGGING macro

This commit is contained in:
Jakob Rath 2023-03-23 14:16:48 +01:00
parent 73b97f3a32
commit 4f7a25eb73

View file

@ -102,9 +102,11 @@ polysat_log(LogLevel msg_level, std::string fn, std::string pretty_fn);
#define COND_LOG(c, x) if (c) LOG(x)
#define LOGE(x) LOG(#x << " = " << (x))
#define IF_LOGGING(x) \
do { \
x; \
#define IF_LOGGING(x) \
do { \
if (get_log_enabled()) { \
x; \
} \
} while (false)