use new GNUNET_assert_from()
This commit is contained in:
parent
50c476877e
commit
209f0162fc
8
util.h
8
util.h
@ -24,13 +24,7 @@
|
|||||||
#define _BRANDT_UTIL_H
|
#define _BRANDT_UTIL_H
|
||||||
|
|
||||||
|
|
||||||
#define brandt_assert(cond) do { if (!(cond)) { GNUNET_log_from ( \
|
#define brandt_assert(cond) GNUNET_assert_from(cond, "libbrandt")
|
||||||
GNUNET_ERROR_TYPE_ERROR, \
|
|
||||||
"libbrandt", \
|
|
||||||
"Assertion failed at %s:%d.\n", \
|
|
||||||
__FILE__, \
|
|
||||||
__LINE__); GNUNET_abort_ (); \
|
|
||||||
} } while (0)
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user