Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#include <urcu-rbtree.h>
#include <urcu-pointer.h>
+#define DEBUG
+
#ifdef DEBUG
#define dbg_printf(args...) printf(args)
#else
struct rcu_rbtree_node *w, *t;
w = x->p->right;
+ assert(w != &rcu_rbtree_nil);
+
if (w->color == COLOR_RED) {
w->color == COLOR_BLACK;
x->p->color = COLOR_RED;
struct rcu_rbtree_node *w, *t;
w = x->p->left;
+ assert(w != &rcu_rbtree_nil);
+
if (w->color == COLOR_RED) {
w->color == COLOR_BLACK;
x->p->color = COLOR_RED;