X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=man3%2Fassert.h.3;fp=man3%2Fassert.h.3;h=1a532fa71fdc5d1bf2c91cc623565d322db4e419;hp=0000000000000000000000000000000000000000;hb=5dffc6a444fc022d7cca6bff4033d471a757aa57;hpb=c454b5c6ac2e92d8963b96b3e508a13026c58c45 diff --git a/man3/assert.h.3 b/man3/assert.h.3 new file mode 100644 index 0000000..1a532fa --- /dev/null +++ b/man3/assert.h.3 @@ -0,0 +1,39 @@ +.\" This file is part of the Public Domain C Library (PDCLib). +.\" Permission is granted to use, modify, and / or redistribute at will. +.\" +.Dd +.Dt ASSERT.H 3 +.Os +.\" +.Sh NAME +.Nm assert.h +.Nd verify program assertion +.\" +.Sh SYNOPSIS +.In assert.h +.\" +.Sh DESCRIPTION +The header +.In assert.h +shall define one macro: +.Dv assert() . +.Pp +If +.Dv NDEBUG +was undefined at the most recent inclusion of this header, then it shall be +defined as a macro which will evaluate the scalar expression and, if it is +false, abort the program with a descriptive error message as defined in +.Xr assert 3 . +.\" +.Pp +If +.Dv NDEBUG +was defined at the most recent inclusion of this header, then it shall be +defined as a macro which evaluates as a void expression and +.Sy does not +evaluate its parameter. +.\" +.Sh STANDARDS +Conforming to +.St -isoC-90 , +.St -isoC-99 . \ No newline at end of file