aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-01-01 18:59:11 +0000
committerWarner Losh <imp@FreeBSD.org>2018-01-01 18:59:11 +0000
commita1895a92446ab75426c3ec2c0020acfccb204949 (patch)
tree03ac9452a852507d07df66ba31861b34f77627eb /share
parentc40f7c05834bc3398f2983082760752f6701b7a8 (diff)
downloadsrc-a1895a92446ab75426c3ec2c0020acfccb204949.tar.gz
src-a1895a92446ab75426c3ec2c0020acfccb204949.zip
Add note that assert.h may be included multiple times
with and without NDEBUG defined.
Notes
Notes: svn path=/head/; revision=327466
Diffstat (limited to 'share')
-rw-r--r--share/man/man3/assert.310
1 files changed, 9 insertions, 1 deletions
diff --git a/share/man/man3/assert.3 b/share/man/man3/assert.3
index 11d8b326a68f..9cdc43b6cfb7 100644
--- a/share/man/man3/assert.3
+++ b/share/man/man3/assert.3
@@ -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