mirror of
https://github.com/Z3Prover/z3
synced 2025-05-06 15:25:46 +00:00
logging cleanup
move everything out-of-line as common path doesn't log fix some race conditions on file ptr vs enable_logging vars
This commit is contained in:
parent
1f4a7c5101
commit
9b5ec6d004
5 changed files with 106 additions and 76 deletions
|
@ -270,10 +270,8 @@ namespace api {
|
|||
|
||||
void context::invoke_error_handler(Z3_error_code c) {
|
||||
if (m_error_handler) {
|
||||
if (g_z3_log) {
|
||||
// error handler can do crazy stuff such as longjmp
|
||||
g_z3_log_enabled = true;
|
||||
}
|
||||
// error handler can do crazy stuff such as longjmp
|
||||
ctx_enable_logging();
|
||||
m_error_handler(reinterpret_cast<Z3_context>(this), c);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue