Skip to content

Conversation

@nordic-krch
Copy link
Contributor

@nordic-krch nordic-krch commented Feb 26, 2021

Bringing back reverted commit, Commit was initially introduced by #31904 and then reverted by #32645.
The reason for sample failing was that macro #define UTIL_EXPAND(...) __VA_ARGS__ was accidentally removed from util_internal.h and it was used by usb audio. Missing macro was added back to util_internal.h. No other changes compared to initial commit.

Fixes #32619.

Signed-off-by: Krzysztof Chruscinski [email protected]

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]>
@github-actions github-actions bot added the area: API Changes to public APIs label Feb 26, 2021
@nashif nashif merged commit 71cdcb7 into zephyrproject-rtos:master Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

samples: usb: audio: Samples for usb audio fail building

4 participants