Function wasmer_c_api::wasm_c_api::engine::wasm_config_delete[][src]

#[no_mangle]pub extern "C" fn wasm_config_delete(_config: Option<Box<wasm_config_t>>)

Delete a Wasmer config object.

This function does not need to be called if wasm_engine_new_with_config or another function that takes ownership of the wasm_config_t is called.

Example

int main() {
    // Create the configuration.
    wasm_config_t* config = wasm_config_new();

    // Delete the configuration
    wasm_config_delete(config);

    return 0;
}

cbindgen:ignore