Add bzArrayFor helper macro

This commit is contained in:
2023-11-23 10:34:29 +01:00
parent adaada9a22
commit ffb058b1e8

View File

@@ -51,4 +51,6 @@ do { \
#define bzArraySet(arr, idx, e) (arr)[_bzArraySet(arr, idx)] = e
#define bzArrayPop(arr) (arr)[_bzArrayPop(arr)]
#define bzArrayFor(arr, it) for (i32 it = 0; it < bzArraySize(arr); it++)
#endif //BREEZE_ARRAY_H