diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-21 01:16:05 +0000 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-21 01:16:05 +0000 |
commit | 9470cb2c32eab220f796b1438b787528272cbe84 (patch) | |
tree | b9b2cc12446173436d2bc7a32e82cc3378ec721e /lib/zassert.h | |
parent | 5cae7eea451f2b7d65b5892e2c1dafc70f8b836e (diff) | |
download | quagga-9470cb2c32eab220f796b1438b787528272cbe84.tar.bz2 quagga-9470cb2c32eab220f796b1438b787528272cbe84.tar.xz |
Upgrade of "pipework" -- including piping to/from shell commandsex11p
Version 0.99.15ex11p
A major overhaul.
Diffstat (limited to 'lib/zassert.h')
-rw-r--r-- | lib/zassert.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/zassert.h b/lib/zassert.h index 9f2465f7..a12464fe 100644 --- a/lib/zassert.h +++ b/lib/zassert.h @@ -6,6 +6,7 @@ #define _QUAGGA_ASSERT_H #include "confirm.h" +#include "misc.h" extern void _zlog_assert_failed (const char *assertion, const char *file, unsigned int line, const char *function) @@ -44,11 +45,14 @@ extern void _zlog_abort_err (const char *mess, int err, const char *file, /* NDEBUG time assert() */ #ifndef NDEBUG -#define dassert(EX) zassert(EX) +# define dassert(EX) zassert(EX) #else -#define dassert(EX) +# define dassert(EX) #endif +/* Assert iff QDEBUG */ +#define qassert(EX) if (qdebug) zassert(EX) + /* Abort with message */ #define zabort(MS) _zlog_abort_mess(MS, __FILE__, __LINE__, __ASSERT_FUNCTION) |