summaryrefslogtreecommitdiff
path: root/include/assert.h
AgeCommit message (Collapse)Author
2020-09-06Use __STDC_VERSION__ instead of __ISO_C_VISIBLE to guard _Static_assert.Todd C. Miller
We need to test what the compiler supports, not what the C library provides. This prevents static_assert from being defined when compiling with the in-tree gcc (4.2.1) which does not support _Static_assert.
2020-09-05Add C11's static_assert.Anthony J. Bentley
tested in a bulk by naddy@ previously submitted by jsg@ and Martin Wanvik ok millert@
2011-06-26half-guard the actual function prototypes.Marc Espie
precludes -Wredundant-declarations with multiple includes. okay millert@
2006-01-31Annotate _assert()/__assert2() as __dead.Hans-Joerg Hoexer
As discussed with espie@, ok millert@
2006-01-13Include the function name in assert() output. From espie@Todd C. Miller
2003-07-15proto _assert2()Theo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-06-10back-out header change for now.Marc Espie
2002-06-10put back in the assert changes for ISO C 99 (put __func__ in it)Marc Espie
2002-04-19avoid cranking libc minors for another few weeksTheo de Raadt
2002-04-17Use __func__ in assert.Marc Espie
ok millert@
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
1997-09-21Well, as we are heading for a release people are encouraged to rebuild theirNiklas Hallqvist
entire trees for testing anyway, I might as well do this intrusive touching of include files now. Added openBSD tags.
1995-10-18initial import of NetBSD treeTheo de Raadt