executable dumps were always written to stdout. Now they can be written to any stream

This commit is contained in:
cozis
2022-12-08 12:56:03 +01:00
parent 57b4f37d3a
commit 5284251e19
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ static _Bool disassemble(Source *src)
{
Executable *exe = compile_source_and_print_error_on_failure(src);
if(exe == NULL) return 0;
Executable_Dump(exe);
Executable_Dump(exe, stdout);
Executable_Free(exe);
return 1;
}