bedquilt_io/sys/wasm2glulx/mod.rs
1#![allow(missing_docs)]
2
3use cfg_if::cfg_if;
4pub mod glk;
5pub mod mutex;
6pub mod random;
7
8cfg_if! {
9 if #[cfg(feature = "global_allocator")] {
10 #[global_allocator]
11 static ALLOCATOR : dlmalloc::GlobalDlmalloc = dlmalloc::GlobalDlmalloc;
12 }
13}
14
15/// Exits the program.
16pub fn exit() -> ! {
17 unsafe {
18 wasm2glulx_ffi::glk::exit()
19 }
20}