Add note that assert.h may be included multiple times

with and without NDEBUG defined.
This commit is contained in:
Warner Losh 2018-01-01 18:59:11 +00:00
parent c40f7c0583
commit a1895a9244

View File

@ -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