This commit is contained in:
Xu Jun 2022-06-24 11:25:12 +08:00
parent adfd5ed0c2
commit c24b05d779

View File

@ -808,12 +808,12 @@ wasm_externref_cleanup(WASMModuleInstanceCommon *module_inst);
/** /**
* @brief Internal implementation for dumping or printing callstack line * @brief Internal implementation for dumping or printing callstack line
* *
* @note if dump_or_print is true, then print to stdout directly * @note if dump_or_print is true, then print to stdout directly;
* if dump_or_print is false, but *buf is NULL, then return the length of * if dump_or_print is false, but *buf is NULL, then return the length of the
* the line * line;
* if dump_or_print is false, and *buf is not NULL, then dump content to the * if dump_or_print is false, and *buf is not NULL, then dump content to
* memory pointed by *buf, and adjust *buf and *len according to actual bytes * the memory pointed by *buf, and adjust *buf and *len according to actual
* dumped, and return the actual dumped length * bytes dumped, and return the actual dumped length
* *
* @param line_buf current line to dump or print * @param line_buf current line to dump or print
* @param dump_or_print whether to print to stdout or dump to buf * @param dump_or_print whether to print to stdout or dump to buf