aboutsummaryrefslogtreecommitdiff
path: root/src/uthash_extra.h
blob: cbc10561b7dd85b8b482ed98054f6dc3d6d8112f (plain) (blame)
1
2
3
4
5
6
7
#pragma once

#include <uthash.h>

#define HASH_ITER2(head, el)                                                             \
	for (__typeof__(head) el = (head), __tmp = el != NULL ? el->hh.next : NULL;      \
	     el != NULL; el = __tmp, __tmp = el != NULL ? el->hh.next : NULL)