3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 01:40:22 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-05-17 10:42:34 -07:00
parent 93a9847815
commit d2bd92eab9
2 changed files with 25 additions and 7 deletions

View file

@ -319,7 +319,14 @@ namespace smt {
struct scoped_ctx_push {
context* c;
scoped_ctx_push(context* c): c(c) { c->push(); }
~scoped_ctx_push() { c->pop(1); }
~scoped_ctx_push() {
try {
c->pop(1);
}
catch (...) {
;
}
}
};
/**