feat(c-api) Implement wasm_importtype_delete.

This commit is contained in:
Ivan Enderlin
2020-09-21 15:20:26 +02:00
parent a2e744aba6
commit dfd50ee6ec

View File

@@ -1869,6 +1869,9 @@ pub extern "C" fn wasm_importtype_type(
unsafe { et.extern_type.as_ref() } unsafe { et.extern_type.as_ref() }
} }
#[no_mangle]
pub unsafe extern "C" fn wasm_importtype_delete(_importtype: Option<Box<wasm_importtype_t>>) {}
impl From<ImportType> for wasm_importtype_t { impl From<ImportType> for wasm_importtype_t {
fn from(other: ImportType) -> Self { fn from(other: ImportType) -> Self {
(&other).into() (&other).into()