#[no_mangle]
pub extern "C" fn wasmi_store_new(
engine: &wasm_engine_t,
data: *mut c_void,
finalizer: Option<extern "C" fn(_: *mut c_void)>,
) -> Box<wasmi_store_t>
Expand description
Creates a new Store<()>
for the given engine
.
- This takes a foreign
data
with an associatedfinalizer
. - The returned
wasm_store_t
must be freed usingwasm_store_delete
.
Wraps <wasmi::Store<()>>::new
.