Skip to content

Commit

Permalink
Add a missing api to the wasm C API
Browse files Browse the repository at this point in the history
This was used when [prototyping] but I found it wasn't implemented yet!

[prototyping]: dtolnay/watt#2 (comment)
  • Loading branch information
alexcrichton committed Oct 17, 2019
1 parent 872f6aa commit b14d021
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wasmtime-api/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b14d021

Please sign in to comment.