1<assert.h>(0P)             POSIX Programmer's Manual            <assert.h>(0P)
2
3
4

NAME

6       assert.h - verify program assertion
7

SYNOPSIS

9       #include <assert.h>
10

DESCRIPTION

12       The  <assert.h>  header  shall define the assert() macro.  It refers to
13       the macro NDEBUG which is not defined  in  the  header.  If  NDEBUG  is
14       defined  as  a  macro  name  before  the  inclusion of this header, the
15       assert() macro shall be defined simply as:
16
17
18              #define assert(ignore)((void) 0)
19
20       Otherwise, the macro behaves as described in assert().
21
22       The assert() macro shall be redefined according to the current state of
23       NDEBUG each time <assert.h> is included.
24
25       The  assert() macro shall be implemented as a macro, not as a function.
26       If the macro definition is suppressed in  order  to  access  an  actual
27       function, the behavior is undefined.
28
29       The following sections are informative.
30

APPLICATION USAGE

32       None.
33

RATIONALE

35       None.
36

FUTURE DIRECTIONS

38       None.
39

SEE ALSO

41       The System Interfaces volume of IEEE Std 1003.1-2001, assert()
42
44       Portions  of  this text are reprinted and reproduced in electronic form
45       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
46       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
47       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
48       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
49       event of any discrepancy between this version and the original IEEE and
50       The  Open Group Standard, the original IEEE and The Open Group Standard
51       is the referee document. The original Standard can be  obtained  online
52       at http://www.opengroup.org/unix/online.html .
53
54
55
56IEEE/The Open Group                  2003                       <assert.h>(0P)
Impressum