* Enable buffering of stderr in C++.

This commit is contained in:
Eelco Dolstra 2003-10-16 11:55:37 +00:00
parent f7c7aad135
commit c78bf11524
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ int main(int argc, char * * argv)
ATerm bottomOfStack;
ATinit(argc, argv, &bottomOfStack);
/* Turn on buffering for cerr. */
char buf[1024];
cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
try {
initAndRun(argc, argv);
} catch (UsageError & e) {