feat(c-api) Implement wasm_exporttype_delete.

This commit is contained in:
Ivan Enderlin
2020-10-06 22:19:50 +02:00
parent cf47832ec6
commit fdb077236a

View File

@@ -30,6 +30,9 @@ pub extern "C" fn wasm_exporttype_type(
unsafe { et.extern_type.as_ref() }
}
#[no_mangle]
pub extern "C" fn wasm_exporttype_delete(_exporttype: Option<Box<wasm_exporttype_t>>) {}
impl From<ExportType> for wasm_exporttype_t {
fn from(other: ExportType) -> Self {
(&other).into()