Expose wasm_runtime_call_indirect (#1969)

The function has been there for long. While what it does look a bit unsafe
as it calls a function which may be not wasm-wise exported explicitly, it's
useful and widely used when implementing callback-taking APIs, including
our pthread_create's implementation.
This commit is contained in:
YAMAMOTO Takashi
2023-02-20 19:56:55 +09:00
committed by GitHub
parent e516de8ec7
commit 37b09d0f24
6 changed files with 33 additions and 36 deletions

View File

@ -46,10 +46,6 @@
wasm_runtime_addr_native_to_app(module_inst, ptr)
/* clang-format on */
extern bool
wasm_runtime_call_indirect(wasm_exec_env_t exec_env, uint32 element_indices,
uint32 argc, uint32 argv[]);
enum {
T_THREAD,
T_MUTEX,