Introduce #define UNIV_LIST_DEBUG for enabling the debug code in

UT_LIST_REMOVE_CLEAR().
This commit is contained in:
marko 2006-11-09 12:52:45 +00:00
parent c0fd7331fd
commit 7cc0c62e77
2 changed files with 2 additions and 1 deletions

View file

@ -75,6 +75,7 @@ memory is read outside the allocated blocks. */
#if 0
#define UNIV_DEBUG
#define UNIV_LIST_DEBUG
#define UNIV_MEM_DEBUG
#define UNIV_IBUF_DEBUG
#define UNIV_SYNC_DEBUG

View file

@ -124,7 +124,7 @@ name, NODE1 and NODE2 are pointers to nodes. */
}\
/* Invalidate the pointers in a list node. */
#ifdef UNIV_DEBUG
#ifdef UNIV_LIST_DEBUG
# define UT_LIST_REMOVE_CLEAR(NAME, N) \
((N)->NAME.prev = (N)->NAME.next = (void*) -1)
#else