diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-23 11:32:47 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-23 11:32:47 -0500 |
commit | a888c09bd54de77fb2004754a0e14ce14a906232 (patch) | |
tree | c5b20b4be32feec7a3430f1191e1f735ea51ca57 /matrix-stdlib/src/lib.rs | |
parent | indexing and field access (diff) | |
download | matrix-a888c09bd54de77fb2004754a0e14ce14a906232.tar.gz matrix-a888c09bd54de77fb2004754a0e14ce14a906232.tar.bz2 matrix-a888c09bd54de77fb2004754a0e14ce14a906232.zip |
more changes
Diffstat (limited to '')
-rw-r--r-- | matrix-stdlib/src/lib.rs | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/matrix-stdlib/src/lib.rs b/matrix-stdlib/src/lib.rs index 7d12d9a..312d397 100644 --- a/matrix-stdlib/src/lib.rs +++ b/matrix-stdlib/src/lib.rs @@ -1,14 +1,7 @@ -pub fn add(left: usize, right: usize) -> usize { - left + right -} +use matrix::vm::Vm; -#[cfg(test)] -mod tests { - use super::*; +mod io; - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); - } +pub fn load(compiler: &mut Vm) { + io::load(compiler); } |