logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

assert.h.0p (2489B)


  1. '\" et
  2. .TH assert.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. assert.h
  12. \(em verify program assertion
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <assert.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The functionality described on this reference page is aligned with the
  20. ISO\ C standard. Any conflict between the requirements described here and the
  21. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  22. .P
  23. The
  24. .IR <assert.h>
  25. header shall define the
  26. \fIassert\fR()
  27. macro. It refers to the macro NDEBUG
  28. which is not defined in the header. If NDEBUG is defined as a macro
  29. name before the inclusion of this header, the
  30. \fIassert\fR()
  31. macro shall be defined simply as:
  32. .sp
  33. .RS 4
  34. .nf
  35. #define assert(ignore)((void) 0)
  36. .fi
  37. .P
  38. .RE
  39. .P
  40. Otherwise, the macro behaves as described in
  41. \fIassert\fR().
  42. .P
  43. The
  44. \fIassert\fR()
  45. macro shall be redefined according to the current state of NDEBUG each
  46. time
  47. .IR <assert.h>
  48. is included.
  49. .P
  50. The
  51. \fIassert\fR()
  52. macro shall be implemented as a macro, not as a function. If the macro
  53. definition is suppressed in order to access an actual function, the
  54. behavior is undefined.
  55. .LP
  56. .IR "The following sections are informative."
  57. .SH "APPLICATION USAGE"
  58. None.
  59. .SH RATIONALE
  60. None.
  61. .SH "FUTURE DIRECTIONS"
  62. None.
  63. .SH "SEE ALSO"
  64. The System Interfaces volume of POSIX.1\(hy2017,
  65. .IR "\fIassert\fR\^(\|)"
  66. .\"
  67. .SH COPYRIGHT
  68. Portions of this text are reprinted and reproduced in electronic form
  69. from IEEE Std 1003.1-2017, Standard for Information Technology
  70. -- Portable Operating System Interface (POSIX), The Open Group Base
  71. Specifications Issue 7, 2018 Edition,
  72. Copyright (C) 2018 by the Institute of
  73. Electrical and Electronics Engineers, Inc and The Open Group.
  74. In the event of any discrepancy between this version and the original IEEE and
  75. The Open Group Standard, the original IEEE and The Open Group Standard
  76. is the referee document. The original Standard can be obtained online at
  77. http://www.opengroup.org/unix/online.html .
  78. .PP
  79. Any typographical or formatting errors that appear
  80. in this page are most likely
  81. to have been introduced during the conversion of the source files to
  82. man page format. To report such errors, see
  83. https://www.kernel.org/doc/man-pages/reporting_bugs.html .