Skip to content

Commit a5d8c0b

Browse files
author
Georgii Rylov
committed
define if not defined
1 parent 857e6b7 commit a5d8c0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/iwasm/common/wasm_runtime_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,10 @@ wasm_runtime_create_exec_env(WASMModuleInstanceCommon *module_inst,
639639
WASM_RUNTIME_API_EXTERN void
640640
wasm_runtime_destroy_exec_env(WASMExecEnv *exec_env);
641641

642+
#ifndef WAMR_ENABLE_COPY_CALLSTACK
643+
#define WAMR_ENABLE_COPY_CALLSTACK 0
644+
#endif
645+
642646
#if WAMR_ENABLE_COPY_CALLSTACK != 0
643647
WASM_RUNTIME_API_EXTERN uint32_t
644648
wasm_copy_callstack(const wasm_exec_env_t exec_env, wasm_frame_ptr_t buffer,

0 commit comments

Comments
 (0)