Skip to content

Commit 1b82ccc

Browse files
author
Georgii Rylov
committed
meaning of the return bool type in the callback
1 parent 1f4d3dd commit 1b82ccc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

core/iwasm/include/wasm_export.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,13 @@ wasm_runtime_create_exec_env(wasm_module_inst_t module_inst,
867867
WASM_RUNTIME_API_EXTERN void
868868
wasm_runtime_destroy_exec_env(wasm_exec_env_t exec_env);
869869

870+
871+
/**
872+
* Callback to be called on wasm_frame_t*.
873+
* It accepts void* as a context that can be used for closures.
874+
* It returns bool so the iterating can stop when the callback returns false.
875+
* E.g. callback that returns false after processing 100 frames
876+
*/
870877
typedef bool (*wasm_frame_callback)(void *, wasm_frame_ptr_t);
871878

872879
/**

0 commit comments

Comments
 (0)