debugability: macro metaprogramming refactor#455
Merged
lgirdwood merged 1 commit intothesofproject:masterfrom Nov 2, 2018
Merged
debugability: macro metaprogramming refactor#455lgirdwood merged 1 commit intothesofproject:masterfrom
lgirdwood merged 1 commit intothesofproject:masterfrom
Conversation
akloniex
reviewed
Oct 3, 2018
lgirdwood
requested changes
Oct 3, 2018
mwierzbix
commented
Oct 9, 2018
Contributor
Author
|
From Travis Now that was unexpected... |
582c689 to
9c497ff
Compare
Member
|
@mwierzbix build breakage. |
lgirdwood
requested changes
Oct 11, 2018
9345689 to
5d67fbe
Compare
Contributor
Author
|
@lgirdwood @akloniex PR ready to be merged. |
mwierzbix
commented
Oct 11, 2018
139ea66 to
ea9d124
Compare
d6ccc72 to
1024e94
Compare
2cd8b88 to
d0fd8af
Compare
lgirdwood
reviewed
Oct 15, 2018
4632119 to
ef394a5
Compare
Member
|
@slawblauciak can you review the cmocka parts |
Contributor
Author
|
@slawblauciak cmocka parts changed in new commit. |
lgirdwood
requested changes
Oct 31, 2018
Member
There was a problem hiding this comment.
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 <michalx.wierzbicki@linux.intel.com>
df78650 to
b284ac3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 michalx.wierzbicki@linux.intel.com