Defined in header <errno.h> |
|
|---|---|
| macro which expands to POSIX-compatible thread-local error number variable (macro variable) |
|
| macros for standard POSIX-compatible error conditions (macro constant) |
|
Defined in header <assert.h> |
|
|---|---|
aborts the program if the user-specified condition is not true. May be disabled for release builds (function macro) |
|
|
(C11)(removed in C23) | issues a compile-time diagnostic if the value of a constant expression is false (keyword macro) |
Bounds checkingThe standard library provides bounds-checked versions of some existing functions (
Note: implementations of bounds-checked functions are available as open-source libraries Safe C and Slibc, and as part of Watcom C. There is also an incompatible set of bounds-checked functions available in Visual Studio. | (since C11) | ||||||||||||||||||||||||||||||||
Since C23, static_assert is itself a keyword, which may also be a predefined macro, so <assert.h> no longer provides it.
|
(C99)(C99)(C99) | defines the error handling mechanism used by the common mathematical functions (macro constant) |
| C++ documentation for Error handling | |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/error