Function wasix::stack_restore
source · pub unsafe fn stack_restore(snapshot: *const StackSnapshot, val: Longsize)Expand description
Restores the current stack to a previous stack described by a supplied stack snapshot. This function will manipulate the __stack_pointer global
Parameters
snapshot- Reference to the stack snapshot that will be restoredval- Value to be returned when the stack is restored (if zero this will change to one)