summaryrefslogtreecommitdiffhomepage
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index e159b42..d675a5c 100644
--- a/utils.h
+++ b/utils.h
@@ -42,6 +42,9 @@ struct vlist_simple_node {
int version;
};
+#define vlist_for_each_element_safe(tree, element, node_member, ptr) \
+ avl_for_each_element_safe(&(tree)->avl, element, node_member.avl, ptr)
+
#define vlist_simple_init(tree, node, member) \
__vlist_simple_init(tree, offsetof(node, member))