diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 10:45:11 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 10:45:11 +0100 |
commit | 209f0162fc06f8a5f69007aa5f73e8f2b1e96076 (patch) | |
tree | 20712c3af933b55253ac8fd6c15aaec18dbaa635 | |
parent | 50c476877e2fdbf6e97259e7790b0c42e0ddd487 (diff) | |
download | libbrandt-209f0162fc06f8a5f69007aa5f73e8f2b1e96076.tar.gz libbrandt-209f0162fc06f8a5f69007aa5f73e8f2b1e96076.zip |
use new GNUNET_assert_from()
-rw-r--r-- | util.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -24,13 +24,7 @@ | |||
24 | #define _BRANDT_UTIL_H | 24 | #define _BRANDT_UTIL_H |
25 | 25 | ||
26 | 26 | ||
27 | #define brandt_assert(cond) do { if (!(cond)) { GNUNET_log_from ( \ | 27 | #define brandt_assert(cond) GNUNET_assert_from(cond, "libbrandt") |
28 | GNUNET_ERROR_TYPE_ERROR, \ | ||
29 | "libbrandt", \ | ||
30 | "Assertion failed at %s:%d.\n", \ | ||
31 | __FILE__, \ | ||
32 | __LINE__); GNUNET_abort_ (); \ | ||
33 | } } while (0) | ||
34 | 28 | ||
35 | 29 | ||
36 | #ifdef NDEBUG | 30 | #ifdef NDEBUG |