mirror of
https://github.com/Z3Prover/z3
synced 2025-07-20 11:22:04 +00:00
throw error if created-eh has not been registered
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ea6827505e
commit
bf6454dccc
1 changed files with 3 additions and 2 deletions
|
@ -218,7 +218,8 @@ bool theory_user_propagator::internalize_term(app* term) {
|
||||||
|
|
||||||
unsigned v = add_expr(term);
|
unsigned v = add_expr(term);
|
||||||
|
|
||||||
if (m_created_eh)
|
if (!m_created_eh)
|
||||||
|
throw default_exception("You have to register a created event handler for new terms");
|
||||||
m_created_eh(m_user_context, this, term, v);
|
m_created_eh(m_user_context, this, term, v);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue