Turn on ISC_MEM_DEBUG by default and define isc_mem_debugging as an extern

defaulting to ISC_FALSE.
This commit is contained in:
Brian Wellington 2000-06-06 18:07:38 +00:00
parent 4c050ce9dc
commit 54ef500660

View file

@ -29,6 +29,9 @@ ISC_LANG_BEGINDECLS
typedef void * (*isc_memalloc_t)(void *, size_t);
typedef void (*isc_memfree_t)(void *, void *);
#define ISC_MEM_DEBUG
extern isc_boolean_t isc_mem_debugging;
#ifdef ISC_MEM_DEBUG
#define isc_mem_get(c, s) isc__mem_getdebug(c, s, __FILE__, __LINE__)
#define isc_mem_put(c, p, s) isc__mem_putdebug(c, p, s, __FILE__, __LINE__)