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

Arm64Emitter: Interface cleanup #9402

Merged
merged 9 commits into from Dec 31, 2020
Merged

Conversation

lioncash
Copy link
Member

Tidies up the interface a little by annotating switch fallthrough to avoid warnings. While we're at it we can convert quite a few enums into enum classes to prevent polluting namespaces and making their usage strongly typed.

Allows eliminating some out variables in favor of optional, which allows
narrowing visible scope of variables.
Silences warnings and makes intent explicit.
Eliminates some magic numbers and makes the type member strongly typed.
Avoids polluting the namespace and makes the members strongly typed.
Prevents namespace pollution and enforces strong typing.
Prevents namespace pollution and makes the enum members strongly typed.
Prevents namespace pollution and makes the enum members strongly typed.
Reduces namespace pollution and makes the enum strongly typed.
Copy link
Member

@BhaaLseN BhaaLseN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@leoetlino leoetlino merged commit f59ee87 into dolphin-emu:master Dec 31, 2020
10 checks passed
@lioncash lioncash deleted the emitter branch January 1, 2021 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants