Skip to content

Commit bc00b3e

Browse files
author
Georgii Rylov
committed
address comments
1 parent 0b5084c commit bc00b3e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

core/iwasm/aot/aot_runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "../common/wasm_runtime_common.h"
1111
#include "../common/wasm_memory.h"
1212
#include "../interpreter/wasm_runtime.h"
13-
#include <string.h>
1413
#if WASM_ENABLE_SHARED_MEMORY != 0
1514
#include "../common/wasm_shared_memory.h"
1615
#endif
@@ -4201,6 +4200,7 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
42014200
cur_frame = cur_frame->prev_frame;
42024201
++count;
42034202
}
4203+
return count;
42044204
#else
42054205
/*
42064206
* TODO: add support for standard frames when GC is enabled

core/iwasm/common/wasm_runtime_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,10 @@ wasm_copy_callstack(const wasm_exec_env_t exec_env, wasm_frame_t *buffer,
17731773
}
17741774
#endif
17751775
#endif
1776+
char *err_msg =
1777+
"No copy_callstack API was actually executed";
1778+
strncpy(error_buf, err_msg, error_buf_size);
1779+
return 0;
17761780
}
17771781
#endif // WAMR_ENABLE_COPY_CALLSTACK
17781782

0 commit comments

Comments
 (0)