diff options
| author | Cody <cody@codyq.dev> | 2023-04-14 00:04:46 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-04-14 00:04:46 -0500 |
| commit | fa0da150a5a481be3d1de448edb6f23c170da9a9 (patch) | |
| tree | 42771a909fca18fb0fe7d5645a7f40b4d69107ef /crates/sloth_vm/src/value.rs | |
| parent | a8b2a413a455fb06e0b10cf13d132c812f92bd4b (diff) | |
| download | sloth-fa0da150a5a481be3d1de448edb6f23c170da9a9.tar.gz | |
Improved VM. Started work on std
Diffstat (limited to 'crates/sloth_vm/src/value.rs')
| -rw-r--r-- | crates/sloth_vm/src/value.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/value.rs b/crates/sloth_vm/src/value.rs index 9862326..f149c0e 100644 --- a/crates/sloth_vm/src/value.rs +++ b/crates/sloth_vm/src/value.rs @@ -1,3 +1,4 @@ +use crate::native::NativeFunction; use crate::Chunk; #[derive(Debug, Clone, Copy, PartialEq)] @@ -28,6 +29,7 @@ pub enum ObjectType { List(Vec<Primitive>), Function(Function), + NativeFunction(NativeFunction), Free { next: usize }, } |
