This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: stderr vs. STDERR_FILENO
Somewhat tangential - there must be a better way to code this:
// If the exception is derived from std::exception, we can give more
// information.
try { __throw_exception_again; }
#ifdef __EXCEPTIONS
catch (exception &exc)
{
char const *w = exc.what();
writestr(" what(): ");
writestr(w);
writestr("\n");
}
#endif
catch (...) { }
where by "better" I mean "without throwing and catching exceptions, as
terminate() may be called in a state where that just doesn't work."
zw