svn commit: r327466 - head/share/man/man3
Warner Losh
imp at FreeBSD.org
Mon Jan 1 18:59:13 UTC 2018
Author: imp
Date: Mon Jan 1 18:59:11 2018
New Revision: 327466
URL: https://svnweb.freebsd.org/changeset/base/327466
Log:
Add note that assert.h may be included multiple times
with and without NDEBUG defined.
Modified:
head/share/man/man3/assert.3
Modified: head/share/man/man3/assert.3
==============================================================================
--- head/share/man/man3/assert.3 Mon Jan 1 18:55:13 2018 (r327465)
+++ head/share/man/man3/assert.3 Mon Jan 1 18:59:11 2018 (r327466)
@@ -28,7 +28,7 @@
.\" @(#)assert.3 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd January 26, 1999
+.Dd January 1, 2018
.Dt ASSERT 3
.Os
.Sh NAME
@@ -68,6 +68,14 @@ as a macro
.Xr cc 1
option
.Fl D Ns Dv NDEBUG ) .
+Unlike most other include files,
+.In assert.h
+may be included multiple times.
+Each time whether or not
+.Dv NDEBUG
+is defined determines the behavior of assert from that point forward
+in the compilation unit until the end of file or another include of
+.In assert.h .
.Sh EXAMPLES
The assertion:
.Pp
More information about the svn-src-all
mailing list