bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: abort() traceability


From: Sam Steingold
Subject: Re: abort() traceability
Date: Mon, 15 Jun 2009 15:29:13 -0400
User-agent: Thunderbird 2.0.0.18 (X11/20081120)

Ben Pfaff wrote:
Bruno Haible <address@hidden> writes:

What do the others think? Should we possibly extend stdlib.in.h so that
abort() becomes a macro that produces a detailed error message, similar to
what assert() does?

Just changing abort() to assert(0) would improve the diagnostics
significantly.

Sounds good.
Actually,

assert(foo())

instead of

if (!foo()) assert(0)

wil probably produce an even better error message.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]