Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2018 18:59:11 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327466 - head/share/man/man3
Message-ID:  <201801011859.w01IxBCZ093204@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801011859.w01IxBCZ093204>