<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/assert.h, branch upstream/11.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-12-29T14:41:17Z</updated>
<entry>
<title>Don't define static_assert for C++.</title>
<updated>2011-12-29T14:41:17Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-12-29T14:41:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ffa01562fdfcf57f38e300e4631665a919632814'/>
<id>urn:sha1:ffa01562fdfcf57f38e300e4631665a919632814</id>
<content type='text'>
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&lt;int, int&gt;::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@
</content>
</entry>
<entry>
<title>As per C11, add static_assert() to &lt;assert.h&gt;.</title>
<updated>2011-12-26T18:57:59Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-12-26T18:57:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c6d3530d859420436a255684052588b87de8f015'/>
<id>urn:sha1:c6d3530d859420436a255684052588b87de8f015</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing __dead2 to __assert().</title>
<updated>2011-01-09T21:39:46Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-01-09T21:39:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=62779d80fb85de470823a8ff2902218a9a5e715e'/>
<id>urn:sha1:62779d80fb85de470823a8ff2902218a9a5e715e</id>
<content type='text'>
__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
</content>
</entry>
<entry>
<title>Remove the Berkeley clause 3's.</title>
<updated>2010-02-16T19:39:50Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2010-02-16T19:39:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2556687c6724a3c8b3685103aad511afb3068b2'/>
<id>urn:sha1:f2556687c6724a3c8b3685103aad511afb3068b2</id>
<content type='text'>
Add a few $FreeBSD$
</content>
</entry>
<entry>
<title>Only protect the prototypes with #ifndef _ASSERT_H_, the standards</title>
<updated>2007-12-01T19:28:13Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2007-12-01T19:28:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=19d6d0eb9a43eecf4df0f9582634232d8b4e30c8'/>
<id>urn:sha1:19d6d0eb9a43eecf4df0f9582634232d8b4e30c8</id>
<content type='text'>
specifically allow changes to the NDEBUG macro between #includes of assert.h
</content>
</entry>
<entry>
<title>Add missing #ifndef _ASSERT_H_ protection against multiple inclusions</title>
<updated>2007-12-01T18:56:50Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2007-12-01T18:56:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=22ac70fcd3aac0d599db07dae360a887d605dd9c'/>
<id>urn:sha1:22ac70fcd3aac0d599db07dae360a887d605dd9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Breath deep and take __P out of the system include files.</title>
<updated>2002-03-23T17:24:55Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-03-23T17:24:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb28f3c29b4c91af1b0e79e456294bb08735648a'/>
<id>urn:sha1:bb28f3c29b4c91af1b0e79e456294bb08735648a</id>
<content type='text'>
# 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.
</content>
</entry>
<entry>
<title>Restore K&amp;R prototype.  Fix other style bugs.</title>
<updated>2001-10-27T19:37:20Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2001-10-27T19:37:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c44a27673ca8b85d6b3d2651e07de5c6e7501566'/>
<id>urn:sha1:c44a27673ca8b85d6b3d2651e07de5c6e7501566</id>
<content type='text'>
Reviewed by:	asmodai, bde
</content>
</entry>
<entry>
<title>Add $FreeBSD$.</title>
<updated>2001-10-24T18:10:37Z</updated>
<author>
<name>Jeroen Ruigrok van der Werven</name>
<email>asmodai@FreeBSD.org</email>
</author>
<published>2001-10-24T18:10:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8c825c1afdd0a1c1626d5beb86e35f317252d99c'/>
<id>urn:sha1:8c825c1afdd0a1c1626d5beb86e35f317252d99c</id>
<content type='text'>
Change assert() macro to print failing function name.
Change K&amp;R function prototype wrapper to ANSI prototype.
This makes us C99 conforming.
</content>
</entry>
<entry>
<title>BSD 4.4 Lite Include Sources</title>
<updated>1994-05-24T09:57:34Z</updated>
<author>
<name>Rodney W. Grimes</name>
<email>rgrimes@FreeBSD.org</email>
</author>
<published>1994-05-24T09:57:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=59deaec541ae8baaa58daf6c5a2196ea7de180c3'/>
<id>urn:sha1:59deaec541ae8baaa58daf6c5a2196ea7de180c3</id>
<content type='text'>
</content>
</entry>
</feed>
