unsafe fn vmaxget() -> *mut c_voidExpand description
Get the current R memory stack watermark.
Use with vmaxset() to restore memory stack state.
Memory allocated with R_alloc() between vmaxget() and vmaxset()
will be freed when vmaxset() is called.
§Example
ⓘ
unsafe {
let watermark = vmaxget();
let buf = R_alloc(100, 1);
// ... use buf ...
vmaxset(watermark); // frees buf
}Checked wrapper for vmaxget. Calls vmaxget_unchecked and routes through with_r_thread.
Generated from source location line 3299, column 8.
Generated from source file miniextendr-api/src/ffi.rs.