summaryrefslogtreecommitdiffstats
path: root/lib/zassert.h
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-03 17:53:29 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-03 17:53:29 +0000
commitf95dfb51f2da39159aea40f62de3532ff3228b1b (patch)
tree60b16c6631e3cbcd78ca2d6cea25d21c1026b702 /lib/zassert.h
parent8364e12dd2737cf77a4e3ead7c3d7bb9cc684010 (diff)
downloadquagga-f95dfb51f2da39159aea40f62de3532ff3228b1b.tar.bz2
quagga-f95dfb51f2da39159aea40f62de3532ff3228b1b.tar.xz
Added zlog_abort functions. Changed pthread mutes to qpthread mutexes
Diffstat (limited to 'lib/zassert.h')
-rw-r--r--lib/zassert.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/zassert.h b/lib/zassert.h
index 26b67da6..424688b9 100644
--- a/lib/zassert.h
+++ b/lib/zassert.h
@@ -8,6 +8,18 @@
extern void _zlog_assert_failed (const char *assertion, const char *file,
unsigned int line, const char *function)
__attribute__ ((noreturn));
+extern void _zlog_abort_mess (const char *mess, const char *file,
+ unsigned int line, const char *function)
+ __attribute__ ((noreturn));
+
+extern void _zlog_abort_errno (const char *mess, const char *file,
+ unsigned int line, const char *function)
+ __attribute__ ((noreturn));
+
+extern void _zlog_abort_err (const char *mess, int err, const char *file,
+ unsigned int line, const char *function)
+ __attribute__ ((noreturn));
+
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define __ASSERT_FUNCTION __func__
@@ -42,11 +54,11 @@ extern void _zlog_assert_failed (const char *assertion, const char *file,
__ASSERT_FUNCTION)
/* Abort with message and errno and strerror() thereof */
-#define zabort_errno(MS) _zlog_assert_failed(MS, __FILE__, __LINE__, \
+#define zabort_errno(MS) _zlog_abort_errno(MS, __FILE__, __LINE__, \
__ASSERT_FUNCTION)
/* Abort with message and given error and strerror() thereof */
-#define zabort_err(MS, ERR) _zlog_assert_failed(MS, __FILE__, __LINE__, \
+#define zabort_err(MS, ERR) _zlog_abort_err(MS, ERR, __FILE__, __LINE__, \
__ASSERT_FUNCTION)
/*==============================================================================