diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-28 22:04:43 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-06-28 22:04:43 +0200 |
commit | e25578ad259462ba0d8a5d8174507561ef4e900a (patch) | |
tree | 1daa7f55e81dbb02ccfc91963f05e0d2a42b5d05 | |
parent | de119e0327bee578821f45f1ec8465be3bec7854 (diff) | |
download | libbrandt-e25578ad259462ba0d8a5d8174507561ef4e900a.tar.gz libbrandt-e25578ad259462ba0d8a5d8174507561ef4e900a.zip |
add debugging shortcuts for points and mpis
-rw-r--r-- | util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -39,6 +39,9 @@ eprintf("Assertion failed in file %s line %d function %s:", __FILE__, __LINE__, | |||
39 | # define brandt_assert_gpgerr(errnum) (!(errnum) ? (void)(0) : \ | 39 | # define brandt_assert_gpgerr(errnum) (!(errnum) ? (void)(0) : \ |
40 | eprintf("Assertion failed in file %s line %d function %s: %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, gcry_strerror((errnum)))) | 40 | eprintf("Assertion failed in file %s line %d function %s: %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, gcry_strerror((errnum)))) |
41 | 41 | ||
42 | # define DP(point) ((void)(gcry_log_debugpnt (#point, point, ec_ctx))) | ||
43 | # define DM(mpi) ((void)(gcry_log_debugmpi (#mpi, mpi, ec_ctx))) | ||
44 | |||
42 | #else | 45 | #else |
43 | 46 | ||
44 | # define brandt_assert(expr) ((void)(expr)) | 47 | # define brandt_assert(expr) ((void)(expr)) |