Alternative AVR assert. More...
#include <assert.h>Go to the source code of this file.
Macros | |
| #define | assert_na(expression) |
| The assert_na() macro tests the given expression, like standard assert macro with __ASSERT_USE_STDERR definition, but don't call abort(). | |
| #define | ASSERT_USE_ABORT |
| Replaces the behavior of the ASSERT macro with the standard one. | |
| #define | ASSERT(expression) |
| The macro tests the given expression. | |
Alternative AVR assert.
Because standard __assert calls abort() function.
| #define ASSERT | ( | expression | ) |
The macro tests the given expression.
Depending on the ASSERT_USE_ABORT macro, it calls standard assert() or assert_na()
| expression | Expression to test for. |
| #define assert_na | ( | expression | ) |
The assert_na() macro tests the given expression, like standard assert macro with __ASSERT_USE_STDERR definition, but don't call abort().
The macro may be removed at compile time by defining NDEBUG as a macro (e.g., by using the compiler option -DNDEBUG).
| expression | Expression to test for. |