Activity/lkml kernel.h: provide array iterator RFC PATCH Alexey Dobriyan 1 participant 1 message Mar 16, 2018 TreeChronological All quotes Copy b4 command loreShare & toolsCopy link b4 am lore Alexey Dobriyan author 2018-03-16 20:04 UTC #0 Copy lore rawProper form for iteration over an array is below: int a[] = {1, 2, 3, 5}; for (int x: a) { ... }Your macro forces an iterator to be pointer which is uh-oh.
Alexey Dobriyan author 2018-03-16 20:04 UTC #0 Copy lore rawProper form for iteration over an array is below: int a[] = {1, 2, 3, 5}; for (int x: a) { ... }Your macro forces an iterator to be pointer which is uh-oh.