Skip to content

Commit 520657d

Browse files
committed
update function
1 parent 03c0e49 commit 520657d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/iwasm/aot/aot_runtime.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ set_error_buf_v(char *error_buf, uint32 error_buf_size, const char *format, ...)
115115
}
116116

117117
static void
118-
aot_unlinked_import_func_trap(void)
118+
aot_unlinked_import_func_trap(WASMExecEnv *exec_env)
119119
{
120-
printf("Unlinked import function called\n");
120+
AOTModuleInstance *module_inst = (AOTModuleInstance *)exec_env->module_inst;
121+
aot_set_exception_with_id(module_inst, EXCE_CALL_UNLINKED_IMPORT_FUNC);
121122
}
122123

123124
static void *

0 commit comments

Comments
 (0)