Eric Blake <[EMAIL PROTECTED]> 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