Skip to content

Commit 71cdcb7

Browse files
nordic-krchnashif
authored andcommitted
sys: util: Update implementation of loop macros
Recursive macros are more generic but they are very depending for preprocessor. When they are used extensively they can prolong compilation even ten times. Replaced them with brute force implementation for: - FOR_EACH macros - GET_N_ARG - GET_ARGS_LESS_N - UTIL_LISTIFY - UTIL_REPEAT New implementation provides same functionality but it is limited to 64 input arguments. This is not a hard limitation and can be increased in the future. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent f2b679d commit 71cdcb7

File tree

3 files changed

+2127
-664
lines changed

3 files changed

+2127
-664
lines changed

0 commit comments

Comments
 (0)