X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=man3%2Fassert.h.3;fp=man3%2Fassert.h.3;h=1a532fa71fdc5d1bf2c91cc623565d322db4e419;hp=0000000000000000000000000000000000000000;hb=c66e7780ad17eb9af82dc61f4e3b44b7f0c890b2;hpb=8ea6754f7b066c496d7c7c68e7695aaec29b253a 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