-
-
Notifications
You must be signed in to change notification settings - Fork 653
Sync defs #1758
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
Sync defs #1758
Conversation
2eb5739
to
8cab4b5
Compare
This PR also gives us the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Overall, this looks good to me (although it's always hard to know for sure with these complex updating changes). Assuming there's not many changes to how Godot's header looks.
I'm not sure how to handle compatibility breakages for refactors. E.g. ABS
was moved to the math namespace. We could still keep it temporarily but deprecate it. But this seems like a lot of work long term.
Yeah I saw that And |
Hm. Normally, it would be my preference to have a deprecated alias for We have the Maybe we could put the deprecated aliases in special headers that are included into the main one? Like,
|
This sounds like a great idea to me! |
2e7525b
to
2afc460
Compare
Added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming the bindings match Godot's closely, this works for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This is looking good to me. I've skimmed over the updated files while looking at the Godot files next to them, and I can't spot any issues
CMake: Match #1758 move of DEBUG_METHODS_ENABLED from build options to defs.hpp
Code is from the godot repo, had to remove duplicate definitions from math.hpp for some types and moved out the math defs into their own file to mirror godot's file structure more closely.
I was looking at syncing some other classes, but there were some types missing, hence this PR.
Briefly tested it on one of my gdextension projects and there doesn't seem to be any issues when running it with Godot 4.4.