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

TLCS900: reduce usage of preprocessor macros. #12744

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

felipesanches
Copy link
Contributor

Based on feedback from @cuavas at #12684 (comment), this PR replaces a bunch of #defines with enum and static constexpr.

@cuavas cuavas merged commit 59ac49b into mamedev:master Sep 10, 2024
5 checks passed
Comment on lines +230 to +245
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
{ INTE34, 0x80, 0x38 }, // INT4
Copy link
Contributor Author

@felipesanches felipesanches Sep 10, 2024

Choose a reason for hiding this comment

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

@cuavas, there's unnecessary repetition of the INT4 line here.

Copy link
Member

Choose a reason for hiding this comment

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

Ah crap, did I screw up editing? I’ll fix it on the next commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks!

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