Skip to content
Commit 42335036 authored by Christopher Friedt's avatar Christopher Friedt Committed by Stephanos Ioannidis
Browse files

include: util: add array for-each macros



AFAIK, we do not have array for-each loops. Seemed like an
obvious gap to fill, so introduce two variants:

* ARRAY_FOR_EACH(array, idx_var)
* ARRAY_FOR_EACH_PTR(array, ptr_var)

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent 11613e08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment