return .{ c, next, close };
}
+exit :: (exitcode: i32) {
+ runtime.__exit(exitcode);
+}
\ No newline at end of file
return wrote;
}
-__exit :: (status: i32) ---
+__exit :: (status: i32) -> void #foreign "onyx_runtime" "__exit" ---
__read_from_input :: (buffer: [] u8) -> i32 {
err, read := io.stream_read(^__stdin, buffer);
return NULL;
}
+ONYX_DEF(__exit, (WASM_I32), ()) {
+ exit(params->data[0].of.i32);
+ return NULL;
+}
+
ONYX_LIBRARY {
ONYX_FUNC(__file_open_impl)
ONYX_FUNC(__file_close)
ONYX_FUNC(__process_wait)
ONYX_FUNC(__process_destroy)
+ ONYX_FUNC(__exit)
NULL
};
\ No newline at end of file