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

fix log in release mode

This commit is contained in:
Jakob Rath 2023-03-29 15:56:50 +02:00
parent 67a4480410
commit 0704f90e9f
2 changed files with 5 additions and 2 deletions

View file

@ -25,7 +25,7 @@ Other:
*/
/*
TODO: add "conditional" logs, i.e., the messages are held back and only printed when a non-conditional message is logged.
TODO: add deferred logs, i.e., the messages are held back and only printed when a non-conditional message is logged.
Purpose: reduce noise, e.g., when printing prerequisites for transformations that do not always apply.
*/

View file

@ -114,7 +114,10 @@ polysat_log(LogLevel msg_level, std::string fn, std::string pretty_fn);
inline void set_log_enabled(bool) {}
inline bool get_log_enabled() { return false; }
class scoped_set_log_enabled {};
class scoped_set_log_enabled {
public:
scoped_set_log_enabled(bool) {}
};
#define LOG_(vlvl, lvl, x) \
do { \