Re: assert.h replacement

2008-03-04 Thread Simon Josefsson
Eric Blake <[EMAIL PROTECTED]> writes: > Simon Josefsson 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

Re: assert.h replacement

2008-03-04 Thread Ben Pfaff
Eric Blake <[EMAIL PROTECTED]> writes: > Simon Josefsson josefsson.org> writes: >> Couldn't a replacement assert.h look like: >> >> #include >> #include "progname.h" >> >> #ifdef NDEBUG >> # define assert(e) ((void) 0) >> #else >> # define assert(e) \

Re: assert.h replacement (was: Re: __func__)

2008-03-04 Thread Eric Blake
Simon Josefsson 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