to_val refactor, remove error macros

This commit is contained in:
Andrew Morris
2023-05-26 11:54:43 +10:00
parent 80cd4deac8
commit ea42e94d5d
36 changed files with 632 additions and 585 deletions

View File

@@ -1,5 +1,7 @@
use std::rc::Rc;
use crate::vs_value::ToVal;
use super::bytecode_decoder::BytecodeDecoder;
use super::bytecode_stack_frame::BytecodeStackFrame;
use super::stack_frame::StackFrame;
@@ -60,3 +62,9 @@ impl VsFunction {
});
}
}
impl ToVal for VsFunction {
fn to_val(self) -> Val {
Val::Function(Rc::new(self))
}
}