mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add fflush() (2)
This commit is contained in:
@@ -466,6 +466,7 @@ dbgcmd_quit(mrb_state *mrb, mrdb_state *mrdb)
|
||||
int buf;
|
||||
|
||||
printf("The program is running. Exit anyway? (y or n) ");
|
||||
fflush(stdout);
|
||||
|
||||
if ((buf = getchar()) == EOF) {
|
||||
mrdb->dbg->xm = DBG_QUIT;
|
||||
|
||||
Reference in New Issue
Block a user