#define ASSERT(expression) { \
if (!(expression)) { \
LOG_PRINTF("Assertion(%s) failed: file \"%s\", line %d\n", \
#expression, __FILE__, __LINE__); \
CALLSTACK(); \
hal_cpu_halt(); \
} \
}
#define ASSERT(expression) { \
if (!(expression)) { \
LOG_PRINTF("Assertion(%s) failed: file \"%s\", line %d\n", \
#expression, __FILE__, __LINE__); \
CALLSTACK(); \
hal_cpu_halt(); \
} \
}