pub unsafe extern "C" fn ruby_stack_length(
topnotch: *mut *mut VALUE,
) -> size_tExpand description
Queries what Ruby thinks is the machine stack. Ruby manages a region of memory. It calls that area the “machine stack”. By calling this function, in spite of its name, you can obtain both one end of the stack and its length at once. Which means you can know the entire region.
@param[out] topnotch On return the pointer points to the upmost address of the macihne stack that Ruby knows. @return Length of the machine stack that Ruby knows.
@internal
§Does anybody use it? @shyouhei is quite skeptical if this is useful outside of the VM. Maybe it was a wrong idea to expose this API to 3rd parties.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3