Skip to main content

R_Reprotect_unchecked

Function R_Reprotect_unchecked 

Source
pub unsafe extern "C-unwind" fn R_Reprotect_unchecked(
    s: SEXP,
    index: c_int,
)
Expand description

Replace the SEXP at a previously recorded protect stack index.

Cost: O(1) — direct array write (R_PPStack[index] = s). No allocation.

§Safety

index must be from a previous R_ProtectWithIndex call and the stack must not have been unprotected past that index. Unchecked FFI binding for R_Reprotect. Generated from source location line 3862, column 12. Generated from source file miniextendr-api/src/ffi.rs.