stacker 0.1.23

A stack growth library useful when implementing deeply recursive algorithms that may accidentally blow the stack.
Documentation
1
2
3
4
5
6
pub unsafe fn guess_os_stack_limit() -> Option<usize> {
    Some(
        libc::pthread_get_stackaddr_np(libc::pthread_self()) as usize
            - libc::pthread_get_stacksize_np(libc::pthread_self()) as usize,
    )
}