From ef38680fe585d4c7a4c46292327d357c88520cc8 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Mon, 14 Sep 2020 16:37:16 -0700 Subject: [PATCH] Add Vm::frames(&self) function Signed-off-by: Alek Ratzloff --- src/vm/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vm/mod.rs b/src/vm/mod.rs index 4211819..1367c2f 100644 --- a/src/vm/mod.rs +++ b/src/vm/mod.rs @@ -48,6 +48,11 @@ impl<'c> Vm<'c> { self.frames.last_mut() } + /// Gets the list of stack frames. + pub fn frames(&self) -> &Vec { + &self.frames + } + /// Gets the stack. pub fn stack(&self) -> &Vec { &self.stack