Commit 8631584c authored by marko's avatar marko

Introduce #define UNIV_LIST_DEBUG for enabling the debug code in

UT_LIST_REMOVE_CLEAR().
parent c3f7a6eb
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment