diff options
Diffstat (limited to 'src/uthash_extra.h')
| -rw-r--r-- | src/uthash_extra.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uthash_extra.h b/src/uthash_extra.h new file mode 100644 index 0000000..cbc1056 --- /dev/null +++ b/src/uthash_extra.h @@ -0,0 +1,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) |