Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
wasm_module_name
and wasm_module_set_name
.
This patch proposes 2 new functions to handle module's name: * `wasm_module_name` that writes the module's name in a `wasm_name_t` if any, * `wasm_module_set_name` that sets the module's name if possible. `wasm_module_set_name` returns `true` if the module's name has been updated succesfully, `false` otherwise, e.g. if the name is invalid, or if it's not possible to update it (e.g. if the module is already instantiated).
- Loading branch information