From b5575596c187fe6d9143b9e08f5b1068ab01410f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 21 Jan 2026 18:37:07 +0100 Subject: Refactor array_foreach_i to array_foreach_idx --- nonstd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nonstd.h') diff --git a/nonstd.h b/nonstd.h index 939c030..631f7f1 100644 --- a/nonstd.h +++ b/nonstd.h @@ -203,7 +203,7 @@ NONSTD_DEF stringv sb_as_sv(const stringb *sb); _i_##var < (arr).length && ((var) = (arr).data[_i_##var], 1); \ ++_i_##var) -#define array_foreach_i(arr, var, index) \ +#define array_foreach_idx(arr, var, index) \ for (size_t index = 0; \ index < (arr).length && ((var) = (arr).data[index], 1); ++index) -- cgit v1.2.3