-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add buffer flush before direct write
- Loading branch information
1 parent
e9bbd40
commit 3b7f58a
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adding
fflush
here is not correct. This functionwrite_console()
is called either from the C stream print() or the C++ iostream print(). In the latter case,fflush
should not be called at all, instead the ostream flush should be invoked.