diff options
| author | Cody <cody@codyq.dev> | 2023-04-12 21:02:16 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-04-12 21:02:16 -0500 |
| commit | a8b2a413a455fb06e0b10cf13d132c812f92bd4b (patch) | |
| tree | adfef0fb8e527a1ad5d4a4aeed79a4c6334126ad /crates/sloth_vm/src/value.rs | |
| parent | 209328c5fa7d57805cb362e3a792232cb6e39ad0 (diff) | |
| download | sloth-a8b2a413a455fb06e0b10cf13d132c812f92bd4b.tar.gz | |
Function calling, returning, jumping and fibonacci programs
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 773da89..9862326 100644 --- a/crates/sloth_vm/src/value.rs +++ b/crates/sloth_vm/src/value.rs @@ -36,6 +36,7 @@ pub struct Function { pub(crate) name: Option<String>, pub(crate) chunk: Chunk, pub(crate) arity: u8, + pub(crate) returns_value: bool, } impl Function { @@ -44,6 +45,7 @@ impl Function { name: None, chunk, arity: 0, + returns_value: false, } } } |
