NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | DIAGNOSTICS | ATTRIBUTES | SEE ALSO
#include <assert.h> assert expression _assert expressionvoid _stdc_assert(const char * file, int line, const char * expression);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The
_assert(x)
macro is defined as
assert(x)
. The
assert
macro tests the given
expression
and if it is false, calls
_stdc_assert()
. The
_stdc_assert()
function writes a diagnostic message to the error channel, and calls
abort(3STDC)
.
If the
expression
is true, the
assert
macro does nothing.
The
assert
macro may be rendered non-operational at compile time using the
NDEBUG
option.
("assertion %s failed: file %s, line %d\ ", expression, __FILE__, __LINE__)
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | DIAGNOSTICS | ATTRIBUTES | SEE ALSO