Skip to content
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

Add a using/typedef for each std::function<> to avoid duplication. #14

Closed

Conversation

paulhuggett
Copy link
Contributor

Previously the full signature for each of the UMP processor callbacks was present twice in the code: once in the definition of the member variable, and again in the signature of the function that sets the member variable. This refactor simply adds a typedef of each std::function<> declaration and uses it in both of those places to eliminate the duplication.

Previously the full signature for each of the UMP processor callbacks
was present twice in the code: once in the definition of the member
variable and again in the signature of the function that sets the
member variable. This refactor simply adds a typedef of each
std::function<> declaration and uses it in both of those places.
@starfishmod
Copy link
Member

This looks good - just want to confirm this works in the Pico dev enviroment first :)

@paulhuggett paulhuggett deleted the umpProcessor-typedefs branch September 12, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants