-
Notifications
You must be signed in to change notification settings - Fork 349
debugability: macro metaprogramming refactor #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
From Travis Now that was unexpected... |
582c689 to
9c497ff
Compare
|
@mwierzbix build breakage. |
9345689 to
5d67fbe
Compare
|
@lgirdwood @akloniex PR ready to be merged. |
139ea66 to
ea9d124
Compare
d6ccc72 to
1024e94
Compare
2cd8b88 to
d0fd8af
Compare
4632119 to
ef394a5
Compare
|
@slawblauciak can you review the cmocka parts |
slawblauciak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
|
@slawblauciak cmocka parts changed in new commit. |
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting and could you remove the merge commit from the PR. Thanks,.
Added macro functions to make repetitive, nearly identical functions more maintainable via metaprogramming. They generate code in pre-compile, conceptually similar to C++17 if-constexpr. sof/trace, host/trace: rewrote _trace_event/d+ functions using preproc.h. test/cmocka/include/test_group_generator: rewrote macros to not conflict with new ones. Added unit tests to check whether more advanced and less obvious macros do in fact work. Signed-off-by: Michal Jerzy Wierzbicki <[email protected]>
df78650 to
b284ac3
Compare
Added macro functions to make repetitive, nearly identical functions more maintainable via metaprogramming. They generate code in pre-compile, conceptually similar to C++17 if-constexpr.
sof/trace, host/trace: rewrote _trace_events using preproc-metaprog.
test/cmocka/include/test_group_generator: rewrote macros to not conflict with new ones.
Additionally, added unit tests for lib/preproc.h, and debugability macros.
Signed-off-by: Michal Jerzy Wierzbicki [email protected]