cvs commit: src/include assert.h
Christoph Mallon
christoph.mallon at gmx.de
Sat Dec 1 11:50:13 PST 2007
Poul-Henning Kamp wrote:
> phk 2007-12-01 18:56:50 UTC
>
> FreeBSD src repository
>
> Modified files:
> include assert.h
> Log:
> Add missing #ifndef _ASSERT_H_ protection against multiple inclusions
This change violates ANSI C:
"The assert macro is redefined according to the current state of NDEBUG
each time that <assert.h> is included." (ISO C99 §7.2)
Please also see the comment in assert.h:
/*
* Unlike other ANSI header files, <assert.h> may usefully be included
* multiple times, with and without NDEBUG defined.
*/
Christoph
More information about the cvs-src
mailing list