diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -32,12 +32,6 @@ void weprintf(const char *fmt, ...); #ifdef NDEBUG -# define brandt_assert(expr) ((void)(expr)) -# define brandt_assert_perror(errnum) ((void)(errnum)) -# define brandt_assert_gpgerr(errnum) ((void)(errnum)) - -#else - # define brandt_assert(expr) ((expr) ? (void)(0) : \ eprintf("Assertion failed in file %s line %d function %s: %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, (#expr))) # define brandt_assert_perror(errnum) (!(errnum) ? (void)(0) : \ @@ -45,6 +39,12 @@ eprintf("Assertion failed in file %s line %d function %s:", __FILE__, __LINE__, # 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)))) +#else + +# define brandt_assert(expr) ((void)(expr)) +# define brandt_assert_perror(errnum) ((void)(errnum)) +# define brandt_assert_gpgerr(errnum) ((void)(errnum)) + #endif #endif |