diff options
Diffstat (limited to 'src/rbtree.h')
-rw-r--r-- | src/rbtree.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rbtree.h b/src/rbtree.h index db0d430..131ba81 100644 --- a/src/rbtree.h +++ b/src/rbtree.h @@ -80,10 +80,15 @@ public: * means we can avoid declaring EBEntry implementations * virtual. */ - g_assert(min() == NULL); + g_assert(root() == NULL); } inline RBEntryType * + root(void) + { + return (RBEntryType *)RB_ROOT(&head); + } + inline RBEntryType * insert(RBEntryType *entry) { RB_INSERT(Tree, &head, entry); |