Implement apis to set and get the name of a wasm module (#3254)
Add API wasm_runtime_set_module_name and wasm_runtime_get_module_name, and by default, a module's name is "" if the set module name api isn't called.
This commit is contained in:
@ -1048,6 +1048,9 @@ struct WASMModule {
|
||||
bool is_ref_types_used;
|
||||
bool is_bulk_memory_used;
|
||||
#endif
|
||||
|
||||
/* user defined name */
|
||||
char *name;
|
||||
};
|
||||
|
||||
typedef struct BlockType {
|
||||
|
||||
Reference in New Issue
Block a user