diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-14 04:57:53 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-14 04:57:53 -0500 |
| commit | 19fefeb732d559195edb01ebc36170c0cf9a0308 (patch) | |
| tree | 681bcb8d9d507024d15814032d3fbb1674677ddc /crates/sloth_vm/src/sloth_std/mod.rs | |
| parent | f6e14f4b2b15b0ace8ed312252ae107f139bd33d (diff) | |
| download | sloth-19fefeb732d559195edb01ebc36170c0cf9a0308.tar.gz | |
eepy
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/mod.rs')
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/sloth_std/mod.rs b/crates/sloth_vm/src/sloth_std/mod.rs index b40fb9a..56e166c 100644 --- a/crates/sloth_vm/src/sloth_std/mod.rs +++ b/crates/sloth_vm/src/sloth_std/mod.rs @@ -8,6 +8,7 @@ pub mod file; pub mod rand; pub mod stdio; pub mod term; +pub mod time; pub static NATIVE_LIBRARY: Lazy<HashMap<&'static str, NativeFunction>> = Lazy::new(|| { let mut map = HashMap::new(); @@ -29,5 +30,8 @@ pub static NATIVE_LIBRARY: Lazy<HashMap<&'static str, NativeFunction>> = Lazy::n map.insert("file$read", file::FILE_READ); map.insert("file$write", file::FILE_WRITE); + // time + map.insert("wait", time::WAIT); + map }); |
