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

Context: Take some arguments as pointer-to-const #1436

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

lioncash
Copy link
Contributor

@lioncash lioncash commented Dec 9, 2021

Several API functions act as state querying functions. These can take some parameters by const to communicate that we don't intend to modify the respective passed in instance (and also allow the API to be more flexible in how it's used)

Several API functions act as state querying functions. These can take
some parameters by const to communicate that we don't intend to modify
the respective passed in instance.
Prevents potential reallocations, given we're using std::function here.
@Sonicadvance1 Sonicadvance1 merged commit 9d43904 into FEX-Emu:main Dec 9, 2021
@lioncash lioncash deleted the context-const branch December 9, 2021 20:38
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