Skip to main content

Rf_unprotect

Function Rf_unprotect 

Source
pub unsafe fn Rf_unprotect(l: c_int)
Expand description

Pop the top l entries from the protect stack.

Cost: O(1) — single integer subtract (R_PPStackTop -= l). No allocation.

The popped SEXPs become eligible for GC. Must match the number of Rf_protect calls in the current scope (LIFO order). Checked wrapper for Rf_unprotect. Calls Rf_unprotect_unchecked and routes through with_r_thread. Generated from source location line 2097, column 12. Generated from source file miniextendr-api/src/ffi.rs.