mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Flush stdout after PRINTLN
This allows debug PRINTLN statements to run even if subsequent rgbasm directives cause a crash.
This commit is contained in:
@@ -1164,8 +1164,14 @@ popc : T_POP_POPC { charmap_Pop(); }
|
||||
print : T_POP_PRINT print_exprs trailing_comma
|
||||
;
|
||||
|
||||
println : T_POP_PRINTLN { putchar('\n'); }
|
||||
| T_POP_PRINTLN print_exprs trailing_comma { putchar('\n'); }
|
||||
println : T_POP_PRINTLN {
|
||||
putchar('\n');
|
||||
fflush(stdout);
|
||||
}
|
||||
| T_POP_PRINTLN print_exprs trailing_comma {
|
||||
putchar('\n');
|
||||
fflush(stdout);
|
||||
}
|
||||
;
|
||||
|
||||
print_exprs : print_expr
|
||||
|
||||
Reference in New Issue
Block a user