Skip to main content

mx_abi_register

Function mx_abi_register 

Source
pub unsafe fn mx_abi_register(pkg_name: &CStr)
Expand description

Register the mx_* C-callables with R.

Called during package init (R_init_*) to make mx_wrap, mx_get, and mx_query available to consumer packages via R_GetCCallable.

§Safety

Must be called from R’s main thread during package initialization. pkg_name must be a valid null-terminated C string.