Go to the source code of this file.
Defines | |
| #define | Q_DEFINE_THIS_FILE static char const Q_ROM Q_ROM_VAR l_this_file[] = __FILE__; |
| #define | Q_DEFINE_THIS_MODULE(name_) static char const Q_ROM Q_ROM_VAR l_this_file[] = #name_; |
| #define | Q_ASSERT(test_) |
| #define | Q_ALLEGE(test_) Q_ASSERT(test_) |
| #define | Q_ERROR() (Q_onAssert(l_this_file, __LINE__)) |
| #define | Q_REQUIRE(test_) Q_ASSERT(test_) |
| #define | Q_ENSURE(test_) Q_ASSERT(test_) |
| #define | Q_INVARIANT(test_) Q_ASSERT(test_) |
| #define | Q_ASSERT_COMPILE(test_) extern char Q_assert_compile[(test_)] |
Functions | |
| void | Q_onAssert (char const Q_ROM *const Q_ROM_VAR file, int line) |
Defines customizable and memory-efficient assertions applicable to embedded systems. This header file can be used in C, C++, and mixed C/C++ programs.
Definition in file qassert.h.
| #define Q_ALLEGE | ( | test_ | ) | Q_ASSERT(test_) |
General purpose assertion that ALWAYS evaluates the test_ argument and calls the Q_onAssert() callback if the test_ evaluates to FALSE.
Definition at line 108 of file qassert.h.
Referenced by QHsm_init().
| #define Q_ASSERT | ( | test_ | ) |
Value:
if (test_) { \ } \ else (Q_onAssert(l_this_file, __LINE__))
Definition at line 95 of file qassert.h.
Referenced by QActive_post(), QActive_postISR(), QF_run(), QHsm_dispatch(), and QHsm_init().
| #define Q_ASSERT_COMPILE | ( | test_ | ) | extern char Q_assert_compile[(test_)] |
| #define Q_DEFINE_THIS_FILE static char const Q_ROM Q_ROM_VAR l_this_file[] = __FILE__; |
| #define Q_DEFINE_THIS_MODULE | ( | name_ | ) | static char const Q_ROM Q_ROM_VAR l_this_file[] = #name_; |
| #define Q_ENSURE | ( | test_ | ) | Q_ASSERT(test_) |
| #define Q_ERROR | ( | ) | (Q_onAssert(l_this_file, __LINE__)) |
Assertion that always calls the Q_onAssert() callback if ever executed.
| #define Q_INVARIANT | ( | test_ | ) | Q_ASSERT(test_) |
| #define Q_REQUIRE | ( | test_ | ) | Q_ASSERT(test_) |
| void Q_onAssert | ( | char const Q_ROM *const Q_ROM_VAR | file, | |
| int | line | |||
| ) |
1.5.4