distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
FATAL_ERROR() macro. More...
#include "distortos/internal/fatalErrorHandler.h"
Go to the source code of this file.
Macros | |
#define | FATAL_ERROR_FUNCTION __PRETTY_FUNCTION__ |
name of function in which fatal error was detected More... | |
#define | FATAL_ERROR(message) fatalErrorHandler(__FILE__, __LINE__, FATAL_ERROR_FUNCTION, (message)) |
Macro used for handling fatal errors - wrapper for fatalErrorHandler() More... | |
FATAL_ERROR() macro.
#define FATAL_ERROR | ( | message | ) | fatalErrorHandler(__FILE__, __LINE__, FATAL_ERROR_FUNCTION, (message)) |
Macro used for handling fatal errors - wrapper for fatalErrorHandler()
[in] | message | is the message of fatal error |
#define FATAL_ERROR_FUNCTION __PRETTY_FUNCTION__ |
name of function in which fatal error was detected
Depending on the context it wraps:
__PRETTY_FUNCTION__
for C++ (assumes that GCC is used),__func__
for C99,__FUNCTION__
otherwise (assumes that GCC is used).