add debugging shortcuts for points and mpis
This commit is contained in:
parent
de119e0327
commit
e25578ad25
3
util.h
3
util.h
@ -39,6 +39,9 @@ eprintf("Assertion failed in file %s line %d function %s:", __FILE__, __LINE__,
|
|||||||
# define brandt_assert_gpgerr(errnum) (!(errnum) ? (void)(0) : \
|
# define brandt_assert_gpgerr(errnum) (!(errnum) ? (void)(0) : \
|
||||||
eprintf("Assertion failed in file %s line %d function %s: %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, gcry_strerror((errnum))))
|
eprintf("Assertion failed in file %s line %d function %s: %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, gcry_strerror((errnum))))
|
||||||
|
|
||||||
|
# define DP(point) ((void)(gcry_log_debugpnt (#point, point, ec_ctx)))
|
||||||
|
# define DM(mpi) ((void)(gcry_log_debugmpi (#mpi, mpi, ec_ctx)))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# define brandt_assert(expr) ((void)(expr))
|
# define brandt_assert(expr) ((void)(expr))
|
||||||
|
Loading…
Reference in New Issue
Block a user