summaryrefslogtreecommitdiffhomepage
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/types.h b/types.h
index b4c33fc..349ae7e 100644
--- a/types.h
+++ b/types.h
@@ -241,6 +241,8 @@ uc_declare_vector(uc_stack, uc_value_t *);
typedef struct printbuf uc_stringbuf_t;
+typedef void (uc_exception_handler_t)(uc_vm *, uc_exception *);
+
struct uc_vm {
uc_stack stack;
uc_exception exception;
@@ -262,6 +264,7 @@ struct uc_vm {
size_t spread_values;
uint8_t trace;
uc_stringbuf_t *strbuf;
+ uc_exception_handler_t *exhandler;
FILE *output;
};