summaryrefslogtreecommitdiffstats
path: root/include/assert.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't define static_assert for C++.ed2011-12-291-1/+10
| | | | | | | | | | | | | | | Even though _Static_assert() is pretty robust for C code, it cannot work correctly with C++ code. This is due to the fact that C++ template parameters may contain commas that are not enclosed in parentheses. For example: static_assert(foo<int, int>::bar == baz, "..."); This causes _Static_assert to be called with an excessive number of parameters. If you want to use static_assert in C++, just use a C++11 compiler. Reported on: current@, ports@
* As per C11, add static_assert() to <assert.h>.ed2011-12-261-0/+6
|
* Add missing __dead2 to __assert().ed2011-01-091-1/+1
| | | | | | | | __assert() is called when an assertion fails. After printing an error message, it will call abort(). abort() never returns, hence it has the __dead2 attribute. Also add this attribute to __assert(). MFC after: 3 weeks
* Remove the Berkeley clause 3's.imp2010-02-161-5/+1
| | | | Add a few $FreeBSD$
* Only protect the prototypes with #ifndef _ASSERT_H_, the standardsphk2007-12-011-3/+2
| | | | specifically allow changes to the NDEBUG macro between #includes of assert.h
* Add missing #ifndef _ASSERT_H_ protection against multiple inclusionsphk2007-12-011-0/+4
|
* Breath deep and take __P out of the system include files.imp2002-03-231-6/+1
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Restore K&R prototype. Fix other style bugs.mike2001-10-271-8/+9
| | | | Reviewed by: asmodai, bde
* Add $FreeBSD$.asmodai2001-10-241-3/+6
| | | | | | Change assert() macro to print failing function name. Change K&R function prototype wrapper to ANSI prototype. This makes us C99 conforming.
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+65
OpenPOWER on IntegriCloud