MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / pop_stack

Method pop_stack

aiscript-vm/src/vm/state.rs:1746–1753  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1744
1745 #[inline(always)]
1746 pub fn pop_stack(&mut self) -> Value<'gc> {
1747 // debug_assert!(self.stack_top > 0, "Stack underflow");
1748 if self.stack_top == 0 {
1749 return Value::Nil;
1750 }
1751 self.stack_top -= 1;
1752 unsafe { *self.stack.get_unchecked(self.stack_top) }
1753 }
1754
1755 #[inline(always)]
1756 pub(crate) fn peek(&self, distance: usize) -> &Value<'gc> {

Callers 5

dispatch_nextMethod · 0.80
eval_functionMethod · 0.80
define_methodMethod · 0.80
bind_methodMethod · 0.80
invokeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected