mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 15:55:46 +00:00
C API: fixed mk_context/mk_context_rc exception behaviour
Adjusted .NET/Java APIs accordingly. Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
2e2fa84d40
commit
91402f2060
5 changed files with 33 additions and 19 deletions
|
@ -26,6 +26,7 @@ Revision History:
|
|||
#define Z3_CATCH_CORE(CODE) } catch (z3_exception & ex) { mk_c(c)->handle_exception(ex); CODE }
|
||||
#define Z3_CATCH Z3_CATCH_CORE(return;)
|
||||
#define Z3_CATCH_RETURN(VAL) Z3_CATCH_CORE(return VAL;)
|
||||
#define Z3_CATCH_RETURN_NO_HANDLE(VAL) } catch (z3_exception &) { return VAL; }
|
||||
|
||||
#define CHECK_REF_COUNT(a) (reinterpret_cast<ast const*>(a)->get_ref_count() > 0)
|
||||
#define VALIDATE(a) SASSERT(!a || CHECK_REF_COUNT(a))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue