aboutsummaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index e81f569..7bbc8c6 100644
--- a/src/env.h
+++ b/src/env.h
@@ -25,6 +25,14 @@ struct pw_env_ctx {
};
/**
+ * An invocation frame exception handler.
+ */
+struct pw_env_frame {
+ struct pw_env_frame *parent;
+ jmp_buf buf;
+};
+
+/**
* The Web Assembly host environment.
*
* This holds the required state to implement the host functions imported by
@@ -36,6 +44,7 @@ struct w2c_env {
struct pw_env_ctx context;
struct pw_env_data {
+ struct pw_env_frame *frame;
uint32_t dynamictop;
uint32_t tablebase;
uint32_t mainloop;