aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_vm/src/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/sloth_vm/src/value.rs')
-rw-r--r--crates/sloth_vm/src/value.rs2
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,
}
}
}