mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
fix(c-api) Use the name wasm_config_set_.
See the discussion here https://github.com/wasmerio/wasmer/pull/2117#discussion_r575303872.
This commit is contained in:
@@ -25,7 +25,7 @@ use super::target_lexicon::wasmer_target_t;
|
||||
/// wasmer_cpu_features_t* cpu_features = wasmer_cpu_features_new();
|
||||
/// wasmer_target_t* target = wasmer_target_new(triple, cpu_features);
|
||||
///
|
||||
/// wasmer_config_set_target(config, target);
|
||||
/// wasm_config_set_target(config, target);
|
||||
/// }
|
||||
///
|
||||
/// // Create the engine.
|
||||
@@ -44,7 +44,7 @@ use super::target_lexicon::wasmer_target_t;
|
||||
/// # }
|
||||
/// ```
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wasmer_config_set_target(
|
||||
pub extern "C" fn wasm_config_set_target(
|
||||
config: &mut wasm_config_t,
|
||||
target: Box<wasmer_target_t>,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user