meaning of the return bool type in the callback

This commit is contained in:
Georgii Rylov 2025-01-27 11:35:56 +00:00
parent 1f4d3dd4d4
commit 1b82cccff3

View File

@ -867,6 +867,13 @@ wasm_runtime_create_exec_env(wasm_module_inst_t module_inst,
WASM_RUNTIME_API_EXTERN void
wasm_runtime_destroy_exec_env(wasm_exec_env_t exec_env);
/**
* Callback to be called on wasm_frame_t*.
* It accepts void* as a context that can be used for closures.
* It returns bool so the iterating can stop when the callback returns false.
* E.g. callback that returns false after processing 100 frames
*/
typedef bool (*wasm_frame_callback)(void *, wasm_frame_ptr_t);
/**