summaryrefslogtreecommitdiff
path: root/src/process.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-07-30 07:34:24 -0400
committerMica White <botahamec@outlook.com>2026-07-30 07:34:24 -0400
commite3c5839159903658a667f789963f20a31567b25c (patch)
tree1e358a5fb43fd4c8f8e06374667583250111d6e6 /src/process.rs
Initial commitHEADmain
Diffstat (limited to 'src/process.rs')
-rw-r--r--src/process.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/process.rs b/src/process.rs
new file mode 100644
index 0000000..ed8c542
--- /dev/null
+++ b/src/process.rs
@@ -0,0 +1,14 @@
+use crate::ScriptContext;
+
+mod tortuise {
+ #[link(wasm_import_module = "tortuise")]
+ unsafe extern "C" {
+ pub safe fn exit(context: u64) -> !;
+ }
+}
+
+impl ScriptContext {
+ pub fn exit(&self) -> ! {
+ tortuise::exit(self.0)
+ }
+}