mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
API: dont deref already free'd memory on error
This commit is contained in:
parent
64f1a759a7
commit
8fda4f904d
7 changed files with 24 additions and 14 deletions
|
@ -170,6 +170,7 @@ namespace api {
|
|||
Z3_error_code get_error_code() const { return m_error_code; }
|
||||
void reset_error_code() { m_error_code = Z3_OK; }
|
||||
void set_error_code(Z3_error_code err, char const* opt_msg);
|
||||
void set_error_code(Z3_error_code err, std::string &&opt_msg);
|
||||
void set_error_handler(Z3_error_handler h) { m_error_handler = h; }
|
||||
// Sign an error if solver is searching
|
||||
void check_searching();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue