src/cx/iterator.h

changeset 628
1e2be40f0cb5
parent 551
2946e13c89a4
child 630
ac5e7f789048
equal deleted inserted replaced
627:cc8cbabd27cd 628:1e2be40f0cb5
162 * @param iter the iterator 162 * @param iter the iterator
163 */ 163 */
164 #define cx_foreach(type, elem, iter) \ 164 #define cx_foreach(type, elem, iter) \
165 for (type elem; cxIteratorValid(&iter) && (elem = (type)cxIteratorCurrent(&iter)) != NULL ; cxIteratorNext(&iter)) // NOLINT(bugprone-macro-parentheses) 165 for (type elem; cxIteratorValid(&iter) && (elem = (type)cxIteratorCurrent(&iter)) != NULL ; cxIteratorNext(&iter)) // NOLINT(bugprone-macro-parentheses)
166 166
167 #endif /* UCX_ITERATOR_H */ 167 #endif // UCX_ITERATOR_H

mercurial