Function wasmer_c_api::wasm_c_api::engine::wasm_config_delete

source ·
#[no_mangle]
pub extern "C" fn wasm_config_delete(
    _config: Option<Box<wasm_config_t>>,
)
Expand description

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