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

Turn TouchControlType (TCT) into an enum class #25333

Closed
wants to merge 1 commit into from

Conversation

quiret
Copy link
Contributor

@quiret quiret commented Feb 3, 2023

Description

The TouchControlType enum for UI is a very risky subject when compiling with graphical display support. Each entry in the enum could collide with a platform-specific preprocessor macro. With this PR I want to help reduce said technical risk that could lead to future compilation failure. Using enum class is the recommended way for enum specification because the language grammar is more robust.

I did encounter a compilation failure due to that definition during my work so please take the subject of symbol collision in programming languages seriously.

Benefits

Stable codebase despite changes in platform packages or dependencies.

Related Issues

#24911

…sion with global symbols or preprocessor definitions
@quiret
Copy link
Contributor Author

quiret commented Mar 23, 2023

I am sorry but I have decided to halt my activities on this PR for an indetermined amount of time. You are free to decide whether to continue it yourself. Thank you to the Marlin firmware community for providing this interesting playing ground for testing my ideas and vision. I hope that Marlin will continue to go towards the best 3D printing solution! Hopefully my ideas have inspired you on how to continue this software!

@quiret quiret closed this Mar 23, 2023
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.

1 participant