Add macro to iterate over seq_arr_t
This commit is contained in:
@@ -34,6 +34,9 @@ SOFTWARE.
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#define FOR_EACH_SEQ_ARR(type, var, arr) \
|
||||||
|
for (type var = seq_arr_front(arr); var != seq_arr_end(arr); var = seq_arr_next(arr, var))
|
||||||
|
|
||||||
typedef struct seq_arr_s {
|
typedef struct seq_arr_s {
|
||||||
uint8_t* data;
|
uint8_t* data;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|||||||
Reference in New Issue
Block a user