mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
execute_func: Newline only for non-empty returns
For void functions, the return value array is empty. Don't print the newline then.
This commit is contained in:
parent
058bc47102
commit
ed152e847a
|
@ -874,7 +874,9 @@ execute_func(WASMModuleInstanceCommon *module_inst, const char *name,
|
|||
if (j < (uint32)(type->result_count - 1))
|
||||
os_printf(",");
|
||||
}
|
||||
os_printf("\n");
|
||||
if (type->result_count > 0) {
|
||||
os_printf("\n");
|
||||
}
|
||||
|
||||
#if WASM_ENABLE_GC != 0
|
||||
for (j = 0; j < num_local_ref_pushed; j++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user