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