diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-22 21:55:00 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-22 21:55:00 +0100 |
| commit | 6381197d09637de75bf81e7bc9c78b06f878088f (patch) | |
| tree | c1ac1d78217e7ab5943b6f6e967fcea06fa36a18 /cheesemap.h | |
| parent | d499436acfeac2cb64db89cc8ae1219a91d5fc1e (diff) | |
iterator helper
Diffstat (limited to 'cheesemap.h')
| -rw-r--r-- | cheesemap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cheesemap.h b/cheesemap.h index 436bfe1..50fa7bf 100644 --- a/cheesemap.h +++ b/cheesemap.h @@ -176,6 +176,9 @@ void cm_iter_init(struct cheesemap_iter* iter, const struct cheesemap* map); bool cm_iter_next(struct cheesemap_iter* iter, const struct cheesemap* map, uint8_t** out_key, uint8_t** out_value); +#define cm_iter_next_(iter, map, out_key, out_val) \ + cm_iter_next(iter, map, (uint8_t**)(out_key), (uint8_t**)(out_val)) + #ifdef __cplusplus } #endif |
