Skip to main content

MARK_NOT_MUTABLE

Function MARK_NOT_MUTABLE 

Source
pub unsafe fn MARK_NOT_MUTABLE(x: SEXP)
Expand description

Mark an object as shared for good: R code that modifies it (x[1] <- 0, attr(x, "a") <- 1) copies it first, whatever else references it. Allocates nothing. Checked wrapper for MARK_NOT_MUTABLE. Calls MARK_NOT_MUTABLE_unchecked inside with_r_thread, which panics off R’s main thread. Generated from source location line 760, column 12. Generated from source file miniextendr-api/src/sys.rs.