Export wasm_config_delete (and few more _delete) (#1262)
This commit is contained in:
@@ -458,6 +458,11 @@ pub unsafe extern "C" fn wasm_engine_delete(engine: *mut wasm_engine_t) {
|
||||
let _ = Box::from_raw(engine);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_config_delete(config: *mut wasm_config_t) {
|
||||
let _ = Box::from_raw(config);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_config_new() -> *mut wasm_config_t {
|
||||
let config = Box::new(wasm_config_t {
|
||||
@@ -483,6 +488,11 @@ pub unsafe extern "C" fn wasm_engine_new_with_config(c: *mut wasm_config_t) -> *
|
||||
Box::into_raw(engine)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_extern_delete(e: *mut wasm_extern_t) {
|
||||
let _ = Box::from_raw(e);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_extern_as_func(e: *mut wasm_extern_t) -> *mut wasm_func_t {
|
||||
match &(*e).which {
|
||||
@@ -1057,6 +1067,11 @@ pub unsafe extern "C" fn wasm_trap_trace(_trap: *const wasm_trap_t, out: *mut wa
|
||||
(*out).set_uninitialized(0);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_importtype_delete(ty: *mut wasm_importtype_t) {
|
||||
let _ = Box::from_raw(ty);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_importtype_module(
|
||||
it: *const wasm_importtype_t,
|
||||
@@ -1096,6 +1111,11 @@ pub unsafe extern "C" fn wasm_importtype_vec_delete(vec: *mut wasm_importtype_ve
|
||||
(*vec).uninitialize();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_exporttype_delete(ty: *mut wasm_exporttype_t) {
|
||||
let _ = Box::from_raw(ty);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_exporttype_name(et: *const wasm_exporttype_t) -> *const wasm_name_t {
|
||||
if (*et).name_cache.is_none() {
|
||||
|
||||
Reference in New Issue
Block a user