-
-
Notifications
You must be signed in to change notification settings - Fork 687
Update missing hashfuncs #1858
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
base: master
Are you sure you want to change the base?
Update missing hashfuncs #1858
Conversation
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! I compared the changes to the code in Godot, and it looks like it matches to me. I have only the one note below
#include <intrin.h> | ||
#endif | ||
|
||
#include "godot_cpp/templates/pair.hpp" |
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.
This should using #include <...>
like the others here, and be ordered alphabetically
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.
Fixed and pushed that.
I do realize it probably makes no difference at all but is there a reason godot-cpp uses #include <...>
for including godot-cpp files? Typically #include <...>
is only used for system includes and that is how it is used upstream too so it's always seemed odd to me that godot-cpp does it like this.
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.
I'm not sure - I don't recall ever having discussed it, but it's used consistently. If we decided we wanted to change this, we should change it everywhere. I think the consistency is more important than which include style we use
1ada0f9
to
fc70347
Compare
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! Looks good to me :-)
Adds the missing hashfuncs for Color, Pair, and Callable. Mainly for the fix in godotengine/godot#107289 but I also needed the Pair hash for module compatibility.
Also updated Pair to be the same as the Pair in Godot.