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:
Alex Crichton
2019-10-17 19:14:15 -05:00
committed by Dan Gohman
parent 842faf5aa6
commit 50beb21b63

View File

@@ -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,