[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: assert.h replacement
From: |
Simon Josefsson |
Subject: |
Re: assert.h replacement |
Date: |
Tue, 04 Mar 2008 17:40:23 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Eric Blake <address@hidden> writes:
> Simon Josefsson <simon <at> josefsson.org> writes:
>
>> Ah, ok, I thought you talked about the existing 'assert' module in
>> gnulib, which looks unrelated to what you are proposing.
>
> I'm actually thinking that that it would be better to make the
> existing assert module serve the two orthogonal purposes (provide
> ./configure --disable-assert, and make assert() guarantee that
> __func__ is included in the output), rather than creating a new
> module. And note that while it is easy to test for __func__ support,
> there are platforms with __func__ support but a broken assert (such as
> cygwin 1.5.x), so you would need an AC_RUN_IFELSE test to detect it.
Ah, testing whether a platform's assert uses __func__ seems like a
useful feature. I don't have time to implement it myself, but would
review it if you submitted a patch.
/Simon
- Re: __func__, (continued)
- Re: __func__, Simon Josefsson, 2008/03/06
- Re: __func__, Jim Meyering, 2008/03/06
- Re: __func__, Simon Josefsson, 2008/03/06
- Re: __func__, Simon Josefsson, 2008/03/06
- Re: __func__, Bruno Haible, 2008/03/06
Re: __func__, Simon Josefsson, 2008/03/03
Re: __func__, Simon Josefsson, 2008/03/03