get_stack_pointer

Function get_stack_pointer 

Source
pub fn get_stack_pointer() -> usize
Expand description

Get the current stack pointer (at the time this function is executing). This may be used to check, e.g., approximate space remaining on a stack, but cannot be relied upon for anything exact because the stack pointer from within this function is read and the frame is later popped.