-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
[cpp] Use cpp::Int64 for haxe.Int64 instead of a class #9935
Conversation
I've gone back and tried to update these two PRs to work with the latest dev branch. I've also added a new hash in hxcpp for int64 keys and added the I'm having some trouble getting some things working as they were before. With the changes to Cppia is also giving me a bit of a hard time with the new Any advice would be greatly welcome. |
Took another look at this and worked around the Also found the I think this finishes everything feature wise, Int64Map works fine on cpp and cppia, all tests are passing as well when using hxcpp with the additions on that end. |
This looks like a cool improvement. @hughsando, @Simn any thoughts or directions to get this merged? |
I think that this is a worthwhile change. As for making sure things always work when the versions haxe and hxcpp differ, you would ideally be able to make the hxcpp merge without the haxe merge and have things work as before. Then, you get the new native int64s when you update haxe. You may need to update the HXCPP_API_LEVEL in the haxe generate project if you need to have hxcpp perform differently with new and old versions of haxe. |
I've just updated my PR on the hxcpp side to the latest hxcpp master and the mac tests are all passing (other platforms are failing with the same reason as the CI on master is failing). The |
I added a new enum getter for int64's as they would otherwise have to go though the object getter (boxing) or the int getter (truncated). Now that the haxe CI is working again the hxcpp CI is and my PR on the hxcpp side is all green so it seems like I've not caused any backwards compatability issues. So that should be good to merge, then we can see what the haxe tests think of all this. |
nice, now that the hxcpp PR has been merged the CI is all green on the haxe side. |
Thank you for your work, and sorry this took so long! |
Hello,
I've made an attempt at improving the
haxe.Int64
type of the cpp target by having it be treated as the existingcpp::Int64
define (__int64 on msvc, int64_t otherwise) and updating several of the hxcpp structures to play nice with this change.HaxeFoundation/hxcpp#932
clsIdArrayInt64
is a new object id and there is a new array store enumarrayInt64
as hxcpp arrays can now storecpp::Int64
's without wrapping them in an object.There are still some things I'm not sure about and could use improvements.
Cheers.