Add a missing api to the wasm C API (#433)
This was used when [prototyping] but I found it wasn't implemented yet! [prototyping]: https://github.com/dtolnay/watt/issues/2#issuecomment-543007365
This commit is contained in:
committed by
Dan Gohman
parent
842faf5aa6
commit
50beb21b63
@@ -858,6 +858,11 @@ pub unsafe extern "C" fn wasm_valtype_new(kind: wasm_valkind_t) -> *mut wasm_val
|
||||
Box::into_raw(ty)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_valtype_delete(vt: *mut wasm_valtype_t) {
|
||||
drop(Box::from_raw(vt));
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_byte_vec_new(
|
||||
out: *mut wasm_byte_vec_t,
|
||||
|
||||
Reference in New Issue
Block a user