]> pd.if.org Git - pdclib.old/blob - man3/assert.h.3
Add _cbprintf/_vcbprintf (callback based printf formatters)
[pdclib.old] / man3 / assert.h.3
1 .\" This file is part of the Public Domain C Library (PDCLib).\r
2 .\" Permission is granted to use, modify, and / or redistribute at will.\r
3 .\"\r
4 .Dd\r
5 .Dt ASSERT.H 3\r
6 .Os\r
7 .\"\r
8 .Sh NAME\r
9 .Nm assert.h\r
10 .Nd verify program assertion\r
11 .\"\r
12 .Sh SYNOPSIS\r
13 .In assert.h\r
14 .\"\r
15 .Sh DESCRIPTION\r
16 The header\r
17 .In assert.h\r
18 shall define one macro:\r
19 .Dv assert(<scalar expression>) .\r
20 .Pp\r
21 If\r
22 .Dv NDEBUG\r
23 was undefined at the most recent inclusion of this header, then it shall be\r
24 defined as a macro which will evaluate the scalar expression and, if it is\r
25 false, abort the program with a descriptive error message as defined in\r
26 .Xr assert 3 .\r
27 .\"\r
28 .Pp\r
29 If\r
30 .Dv NDEBUG\r
31 was defined at the most recent inclusion of this header, then it shall be\r
32 defined as a macro which evaluates as a void expression and\r
33 .Sy does not\r
34 evaluate its parameter.\r
35 .\"\r
36 .Sh STANDARDS\r
37 Conforming to\r
38 .St -isoC-90 ,\r
39 .St -isoC-99 .