Add note that assert.h may be included multiple times
with and without NDEBUG defined.
This commit is contained in:
parent
c40f7c0583
commit
a1895a9244
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user