From a8b2a413a455fb06e0b10cf13d132c812f92bd4b Mon Sep 17 00:00:00 2001 From: Cody Date: Wed, 12 Apr 2023 21:02:16 -0500 Subject: Function calling, returning, jumping and fibonacci programs --- crates/sloth_vm/src/value.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/sloth_vm/src/value.rs') 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, 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, } } } -- cgit v1.2.3