|
|
@@ -117,13 +117,13 @@ lv2_atom_sequence_next(const LV2_Atom_Event* i) |
|
|
|
@endcode |
|
|
|
*/ |
|
|
|
#define LV2_ATOM_SEQUENCE_FOREACH(seq, iter) \ |
|
|
|
for (const LV2_Atom_Event* (iter) = lv2_atom_sequence_begin(&(seq)->body); \ |
|
|
|
for (const LV2_Atom_Event* iter = lv2_atom_sequence_begin(&(seq)->body); \ |
|
|
|
!lv2_atom_sequence_is_end(&(seq)->body, (seq)->atom.size, (iter)); \ |
|
|
|
(iter) = lv2_atom_sequence_next(iter)) |
|
|
|
|
|
|
|
/** Like LV2_ATOM_SEQUENCE_FOREACH but for a headerless sequence body. */ |
|
|
|
#define LV2_ATOM_SEQUENCE_BODY_FOREACH(body, size, iter) \ |
|
|
|
for (const LV2_Atom_Event* (iter) = lv2_atom_sequence_begin(body); \ |
|
|
|
for (const LV2_Atom_Event* iter = lv2_atom_sequence_begin(body); \ |
|
|
|
!lv2_atom_sequence_is_end(body, size, (iter)); \ |
|
|
|
(iter) = lv2_atom_sequence_next(iter)) |
|
|
|
|
|
|
@@ -214,13 +214,13 @@ lv2_atom_tuple_next(const LV2_Atom* i) |
|
|
|
@endcode |
|
|
|
*/ |
|
|
|
#define LV2_ATOM_TUPLE_FOREACH(tuple, iter) \ |
|
|
|
for (const LV2_Atom* (iter) = lv2_atom_tuple_begin(tuple); \ |
|
|
|
for (const LV2_Atom* iter = lv2_atom_tuple_begin(tuple); \ |
|
|
|
!lv2_atom_tuple_is_end(LV2_ATOM_BODY_CONST(tuple), (tuple)->size, (iter)); \ |
|
|
|
(iter) = lv2_atom_tuple_next(iter)) |
|
|
|
|
|
|
|
/** Like LV2_ATOM_TUPLE_FOREACH but for a headerless tuple body. */ |
|
|
|
#define LV2_ATOM_TUPLE_BODY_FOREACH(body, size, iter) \ |
|
|
|
for (const LV2_Atom* (iter) = (const LV2_Atom*)body; \ |
|
|
|
for (const LV2_Atom* iter = (const LV2_Atom*)body; \ |
|
|
|
!lv2_atom_tuple_is_end(body, size, (iter)); \ |
|
|
|
(iter) = lv2_atom_tuple_next(iter)) |
|
|
|
|
|
|
|