|
@ -113,10 +113,7 @@ impl Drop for CExternRef { |
|
|
|
|
|
|
|
|
#[no_mangle] |
|
|
#[no_mangle] |
|
|
pub extern "C" fn wasmtime_externref_new(data: *mut c_void) -> wasm_val_t { |
|
|
pub extern "C" fn wasmtime_externref_new(data: *mut c_void) -> wasm_val_t { |
|
|
wasm_val_t::from_val(Val::ExternRef(Some(ExternRef::new(CExternRef { |
|
|
wasmtime_externref_new_with_finalizer(data, None) |
|
|
data, |
|
|
|
|
|
finalizer: None, |
|
|
|
|
|
})))) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#[no_mangle] |
|
|
#[no_mangle] |
|
|