diff options
Diffstat (limited to 'lib/zassert.h')
-rw-r--r-- | lib/zassert.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/zassert.h b/lib/zassert.h index 424688b9..a766eb7b 100644 --- a/lib/zassert.h +++ b/lib/zassert.h @@ -5,6 +5,8 @@ #ifndef _QUAGGA_ASSERT_H #define _QUAGGA_ASSERT_H +#include "confirm.h" + extern void _zlog_assert_failed (const char *assertion, const char *file, unsigned int line, const char *function) __attribute__ ((noreturn)); @@ -61,17 +63,4 @@ extern void _zlog_abort_err (const char *mess, int err, const char *file, #define zabort_err(MS, ERR) _zlog_abort_err(MS, ERR, __FILE__, __LINE__, \ __ASSERT_FUNCTION) -/*============================================================================== - * Compile time CONFIRM gizmo - * - * Two forms: CONFIRM(e) for use at top (file) level - * confirm(e) for use inside compound statements - */ -#ifndef CONFIRM - - #define CONFIRM(e) extern void CONFIRMATION(char CONFIRM[(e) ? 1 : -1]) ; - #define confirm(e) { CONFIRM(e) } - -#endif - #endif /* _QUAGGA_ASSERT_H */ |