wamr_sys

Function wasm_externref_retain

Source
pub unsafe extern "C" fn wasm_externref_retain(
    externref_idx: u32,
) -> bool
Expand description

Retain an extern object which is mapped to the internal externref so that the object won’t be cleaned during extern object reclaim if it isn’t used.

@param externref_idx the externref index of an external object to retain @return true if success, false otherwise