distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
fatalErrorHandler() header More...
Go to the source code of this file.
Functions | |
void | fatalErrorHandler (const char *file, int line, const char *function, const char *message) |
Handler of fatal errors. More... | |
fatalErrorHandler() header
void fatalErrorHandler | ( | const char * | file, |
int | line, | ||
const char * | function, | ||
const char * | message | ||
) |
Handler of fatal errors.
This function is called via FATAL_ERROR() macro, which is used to supply some of the arguments. It calls weak fatalErrorHook() (only if it is defined) and halts the system by calling abort() with masked interrupts.
[in] | file | is a null-terminated string with the name of file in which fatal error was detected |
[in] | line | is a line number at which fatal error was detected |
[in] | function | is a null-terminated string with function in which fatal error was detected |
[in] | message | is a null-terminated string with the message of fatal error |