mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +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
|
@ -218,8 +218,9 @@ bool theory_user_propagator::internalize_term(app* term) {
|
|||
|
||||
unsigned v = add_expr(term);
|
||||
|
||||
if (m_created_eh)
|
||||
m_created_eh(m_user_context, this, term, v);
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue