rt_misc.h, this function raises
a signal to indicate a runtime anomaly. It is not part of the C
library standard, but the ARM C library supports it as an extension.
is an integer that holds the signal number.
is an integer, string constant or variable that provides additional information about the circumstances that the signal was raised in, for some kinds of signal.
If the user has configured the handling of the signal by calling
the action specified by the user. That is, either to ignore the
signal or to call the user-provided handler function. Otherwise,
which provides the default signal handling behavior.
You can replace the
This enables you to bypass the C signal mechanism and its data-consuming signal handler vector, but otherwise gives essentially the same interface as:
The default signal handler of the library uses the
__raise() to vary the messages it outputs.
There are three possibilities for a
- no return
The handler performs a long jump or restart.
The signal was handled.
The calling code must pass that return value to the exit code. The default library implementation calls
__raise()returns a nonzero return code
Using the ARM C and C++ Libraries and Floating-Point Support:
Using ARM C and C++ Libraries and Floating-Point Support: