Repository navigation
Return accurate system name by changing order of return #1474
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just to also leave a note, hashlink provides a precedent for these identifiers:
https://github.com/HaxeFoundation/hashlink/blob/8425bde866170df7d8f99c3165840c32d683a8e9/src/std/sys.c#L107-L110
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 don't really use hashlink I just assumed it was all fed through here, given this is cpp I never thought farther than that lol. The names here match HashLink's (iOS, tvOS, Android). HashLink has no watchOS case; I used watchOS to match Apple's naming next to tvOS, but I'm happy to drop it if you'd rather stay with what HashLink has.
I think it's more accurate to not use the hashlink prefix on cpp though
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.
Yeah, this is all good, just wanted to leave a note so we make sure it matches what other targets are already returning on these platforms. Hashlink doesn't support watchOS but hxcpp does, so I think it makes sense to have it here.
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.
cool, so what would you like the pr to be changed to?
Uh oh!
There was an error while loading. Please reload this page.
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.
to clarify, I figured putting it in order of specificity would be best because I don't think there's many situations where one would want to get linux back on an android device. I don't think there could be any conflicts here, this API is likely not used much because of the current output
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.
There is no issue for me with the apple ones, I just wanted to note the reference to compare with another haxe target.
But for the emscripten change, if we don't have a specific reason to move it then we can probably keep it as is.
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 have moved emscripten back