diff options
| author | Cody <cody@codyq.dev> | 2023-04-14 04:50:53 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-04-14 04:50:53 -0500 |
| commit | 5dbfa844a37cf00125db891d095d94620ba24879 (patch) | |
| tree | 441c8408ae873e6926e8864d353e71fdad809b4e /crates/sloth_vm/src/lib.rs | |
| parent | 97b7cd10d2bec408cc237e13c61562c810d8fd29 (diff) | |
| download | sloth-5dbfa844a37cf00125db891d095d94620ba24879.tar.gz | |
awful
Diffstat (limited to 'crates/sloth_vm/src/lib.rs')
| -rw-r--r-- | crates/sloth_vm/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/sloth_vm/src/lib.rs b/crates/sloth_vm/src/lib.rs index 295827d..9cf552b 100644 --- a/crates/sloth_vm/src/lib.rs +++ b/crates/sloth_vm/src/lib.rs @@ -19,9 +19,10 @@ use value::{Object, ObjectType}; use crate::value::Primitive; pub use crate::vm::VM; +#[derive(Default)] pub struct Chunk { - constants: Vec<Primitive>, - code: Vec<u8>, + pub constants: Vec<Primitive>, + pub code: Vec<u8>, } const STACK_SIZE: usize = 1024; |
