stack_dump

Function stack_dump 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn stack_dump( sp: *mut StackValue, ) -> *mut StackValue
Expand description

Dump all values on the stack (for REPL debugging)

Prints all stack values in a readable format, then clears the stack. Returns the stack base (empty stack).

ยงSafety

  • Stack base must have been set via set_stack_base
  • sp must be a valid stack pointer
  • All stack values between base and sp must be valid