pub fn stack_ptr() -> raw_ptr
Expand description
Memory address on top of current writable stack area (points to free memory).
Returns
- [raw_ptr] - The location in memory of the top of the stack.
Examples
use std::registers::stack_ptr;
fn foo() {
let sp = stack_ptr();
assert(!sp.is_null());
}