diff options
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r-- | lib/setup_once.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h index 190b69ed7..7af68bf3f 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -207,9 +207,20 @@ typedef int sig_atomic_t; */ #ifdef CURLDEBUG -#define DEBUGF(X) X +#define DEBUGF(x) x #else -#define DEBUGF(X) do { } while (0) +#define DEBUGF(x) do { } while (0) +#endif + + +/* + * Macro used to include assertion code only in debug builds. + */ + +#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H) +#define DEBUGASSERT(x) assert(x) +#else +#define DEBUGASSERT(x) do { } while (0) #endif |