refactor(developer): replace VERIFY_KEYBOARD_VERSION()
calls with VerifyKeyboardVersion()
🌋
#12063
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.
Remove the
VERIFY_KEYBOARD_VERSION()
andVERIFY_KEYBOARD_VERSION_ret()
macros, and instead useVerifyKeyboardVersion()
. The DRYing out of this function call pattern moved the return statement into a macro, which is an inappropriate way to reduce repetition, because (a) it is hard for devs to spot function exits, and (b) automated code analysis tools stumble on it.Also means that we uncover more clearly the return mismatches between
KMX_DWORD
andKMX_BOOL
through the compiler source.I think this is the last PR in this chain, for now. See #12062 for further cleanup (waiting for other unit tests to be completed first).
Relates-to: #10866
Fixes: #12047
@keymanapp-test-bot skip