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 |