diff options
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/utils.h b/include/utils.h index dcefc6b6..397c1978 100644 --- a/include/utils.h +++ b/include/utils.h @@ -13,12 +13,18 @@ #define BITS_PER_BYTE 8 -#if defined(DEBUG) && defined(HAVE_LIBGMP) -#define pr_debug(fmt, arg...) gmp_printf(fmt, ##arg) +#if defined(DEBUG) +#define pr_debug(fmt, arg...) printf(fmt, ##arg) #else #define pr_debug(fmt, arg...) ({ if (false) {}; 0; }) #endif +#if defined(DEBUG) && defined(HAVE_LIBGMP) +#define pr_gmp_debug(fmt, arg...) gmp_printf(fmt, ##arg) +#else +#define pr_gmp_debug(fmt, arg...) ({ if (false) {}; 0; }) +#endif + #define __fmtstring(x, y) __attribute__((format(printf, x, y))) #if 0 #define __gmp_fmtstring(x, y) __fmtstring(x, y) |