pub unsafe extern "C" fn wasm_runtime_dump_call_stack_to_buf(
exec_env: wasm_exec_env_t,
buf: *mut c_char,
len: u32,
) -> u32
Expand description
Dump the call stack to buffer.
@note this function is not thread-safe, please only use this API when the exec_env is not executing
@param exec_env the execution environment @param buf buffer to store the dumped content @param len length of the buffer
@return bytes dumped to the buffer, including the terminating null byte (‘\0’), 0 means error and data in buf may be invalid