1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-22 10:22:16 +00:00

Adjusted to take in account that...

With the curl memory tracking feature decoupled from the debug build feature,
CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows:

CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug)

DEBUGBUILD used for debug enabled specific code (--enable-debug)
This commit is contained in:
Yang Tse
2009-06-10 02:49:42 +00:00
parent 7fcd022b2a
commit 1bbfcc09ca

View File

@ -297,7 +297,7 @@ typedef int sig_atomic_t;
* Macro used to include code only in debug builds. * Macro used to include code only in debug builds.
*/ */
#ifdef CURLDEBUG #ifdef DEBUGBUILD
#define DEBUGF(x) x #define DEBUGF(x) x
#else #else
#define DEBUGF(x) do { } while (0) #define DEBUGF(x) do { } while (0)
@ -308,7 +308,7 @@ typedef int sig_atomic_t;
* Macro used to include assertion code only in debug builds. * Macro used to include assertion code only in debug builds.
*/ */
#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H) #if defined(DEBUGBUILD) && defined(HAVE_ASSERT_H)
#define DEBUGASSERT(x) assert(x) #define DEBUGASSERT(x) assert(x)
#else #else
#define DEBUGASSERT(x) do { } while (0) #define DEBUGASSERT(x) do { } while (0)