Rename wasmer_module_new -> wasmer_object_module_new

There was a bit of confusion when merging: both wasmer_module_new,
wasmer_object_module_new and wasmer_static_module_new are one and
the same function.
This commit is contained in:
Felix Schütt
2022-11-01 15:04:51 +01:00
parent d6fb6a1241
commit eb7f14aa1d
5 changed files with 6 additions and 8 deletions

View File

@@ -915,7 +915,7 @@ impl CreateExe {
c_code_to_instantiate.push_str(&format!(
"
wasm_module_t *atom_{atom_name} = wasmer_static_module_new(store, \"{atom_name}\");
wasm_module_t *atom_{atom_name} = wasmer_object_module_new(store, \"{atom_name}\");
if (!atom_{atom_name}) {{
fprintf(stderr, \"Failed to create module from atom \\\"{atom_name}\\\"\\n\");