__iar_ReportAssert
In this section:
Source file
rx\src\lib\runtime\xreportassert.cDeclared in
assert.h
Description
Low-level function that handles a failed assert.
C-SPY debug action
Notifies the C-SPY debugger about the failed assert.
Default implementation
Failed asserts are reported by the function __iar_ReportAssert. By default, it prints an error message and calls abort. If this is not the behavior you require, you can implement your own version of the function.
The assert macro is defined in the header file assert.h. To turn off assertions, define the symbol NDEBUG.
Caution
In the IDE, the symbol NDEBUG is by default defined in a Release project and not defined in a Debug project. If you build from the command line, you must explicitly define the symbol according to your needs. See NDEBUG.