bison-patches
[Top][All Lists]
Advanced

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

Re: RFC: use assert in the test suite


From: Paul Eggert
Subject: Re: RFC: use assert in the test suite
Date: Tue, 26 Jun 2012 07:26:28 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 06/26/2012 02:03 AM, Akim Demaille wrote:
> I find avoiding assert useless and actually painful.

For tests it doesn't matter and I have no objection.

For production code, 'assert' typically bloats the code
compared to 'abort'.  It's easy enough, if you prefer
the the 'assert' style, to define an 'assert'-like function
of your own,  That is cleaner than a macro anyway, since
it doesn't have the problem of changed behavior
when you compile with -DNDEBUG.



reply via email to

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