-
Notifications
You must be signed in to change notification settings - Fork 93
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
Windows build fixes #159
Windows build fixes #159
Conversation
Sorry, don't have a clue. |
@ksooo are you okay with this change in general or should we use the slightly more verbose |
Yes, I would prefer this, but it's just my personal taste. |
why not use scoped enumerations
This should work IIRC. |
@xhaggi how will that help? |
sorry thought it would work, but it seems that it doesn't. You can use camel-case or like you did prefix it. |
I think I'll use prefixing, will update later. |
e41253a
to
a93ce5c
Compare
a93ce5c
to
65427af
Compare
@ksooo build tested on Windows now. I found some other minor issues that I tacked on as separate commits (since the PR is named "build fixes"). Let me know if you want me to separate them into another PR. If not you can push the button. |
@Glenn-1990 any idea why |
@Jalle19 Yes, there was, the setting is an enum (to toggle between use strict timings - use approximate timings), it's not possible to use a boolean value for an integer enum ;-) It's possible to use a bool as setting, but then we can only switch feature xy on or off, so we can not switch between 2 features. |
Okay, I think I get it. Do you think there will be a third option added to this setting any time soon? If I revert the commit then we should also change |
@Jalle19 If you can confirm that it works, it's ok by me, but otherwise I should leave it as it was before this PR. |
It's only an enum in the XML, once it reaches C++ it's just a plain 0 or 1 integer. I'll do some runtime testing to make sure though. |
Semantically it should probably be stored as an integer since it's not a true/false thing, like you said it represents multiple choices. There just happens to be two choices which is what fooled me to go down the boolean route. |
743c0a3
to
2c79c06
Compare
Just dropped the commit that changed types of a setting, this is now good to go. I'll merge later if no one complains. |
2c79c06
to
c7e9846
Compare
@ksooo how do I trigger Jenkins to build from this branch? Or can you do it for me if you know how?