mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-05 04:08:20 +00:00
feat(c-api) Do not rename wat2wasm for the moment.
This commit is contained in:
@@ -28,7 +28,7 @@ use std::sync::Arc;
|
||||
/// wasmer_byte_vec_new_from_string(&wat, "(module $moduleName)");
|
||||
/// // ^~~~~~~~~~~ that's the name!
|
||||
/// wasm_byte_vec_t wasm;
|
||||
/// wasmer_wat2wasm(&wat, &wasm);
|
||||
/// wat2wasm(&wat, &wasm);
|
||||
///
|
||||
/// // Create the module.
|
||||
/// wasm_module_t* module = wasm_module_new(store, &wasm);
|
||||
@@ -94,7 +94,7 @@ pub unsafe extern "C" fn wasmer_module_name(
|
||||
/// wasm_byte_vec_t wat;
|
||||
/// wasmer_byte_vec_new_from_string(&wat, "(module)");
|
||||
/// wasm_byte_vec_t wasm;
|
||||
/// wasmer_wat2wasm(&wat, &wasm);
|
||||
/// wat2wasm(&wat, &wasm);
|
||||
///
|
||||
/// // Create the module.
|
||||
/// wasm_module_t* module = wasm_module_new(store, &wasm);
|
||||
|
||||
Reference in New Issue
Block a user