distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
CHECK_FUNCTION_CONTEXT() macro. More...
#include "distortos/distortosConfiguration.h"
#include "distortos/architecture/isInInterruptContext.hpp"
#include "distortos/FATAL_ERROR.h"
Go to the source code of this file.
Macros | |
#define | CHECK_FUNCTION_CONTEXT() |
Macro used to check whether the function is executed from thread context. More... | |
CHECK_FUNCTION_CONTEXT() macro.
#define CHECK_FUNCTION_CONTEXT | ( | ) |
Macro used to check whether the function is executed from thread context.
If the function using this macro is executed from interrupt context, FATAL_ERROR() is called.