aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-12-02 10:45:11 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-12-02 10:45:11 +0100
commit209f0162fc06f8a5f69007aa5f73e8f2b1e96076 (patch)
tree20712c3af933b55253ac8fd6c15aaec18dbaa635
parent50c476877e2fdbf6e97259e7790b0c42e0ddd487 (diff)
use new GNUNET_assert_from()
-rw-r--r--util.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/util.h b/util.h
index 2043557..21c1a11 100644
--- a/util.h
+++ b/util.h
@@ -24,13 +24,7 @@
#define _BRANDT_UTIL_H
-#define brandt_assert(cond) do { if (!(cond)) { GNUNET_log_from ( \
- GNUNET_ERROR_TYPE_ERROR, \
- "libbrandt", \
- "Assertion failed at %s:%d.\n", \
- __FILE__, \
- __LINE__); GNUNET_abort_ (); \
- } } while (0)
+#define brandt_assert(cond) GNUNET_assert_from(cond, "libbrandt")
#ifdef NDEBUG