CI: Enable testing AOT multi-module feature (#2621)

And refine some code pieces.
This commit is contained in:
Wenyong Huang
2023-10-08 08:36:49 +08:00
committed by GitHub
parent b115b7baac
commit 7c22bde8dc
9 changed files with 19 additions and 31 deletions

View File

@ -126,13 +126,11 @@ runtime_malloc(uint64 size, WASMModuleInstanceCommon *module_inst,
}
#if WASM_ENABLE_MULTI_MODULE != 0
/*
TODO:
Let loader_malloc be a general API both for AOT and WASM.
*/
/* TODO: Let loader_malloc be a general API both for AOT and WASM. */
#define loader_malloc(size, error_buf, error_buf_size) \
runtime_malloc(size, NULL, error_buf, error_buf_size)
static void
set_error_buf_v(const WASMModuleCommon *module, char *error_buf,
uint32 error_buf_size, const char *format, ...)