Skip to content

Windows; improve SDK overlay for WinSDK #79539

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 3 commits into from
Feb 21, 2025
Merged

Conversation

compnerd
Copy link
Member

Clean up the WinSDK module some for allowing building without reflection or in embedded (just for matching the Darwin platform overlay rather than for actual purpose).

Thanks to @grynspan for the discussion around this cleanup.

This cleans up the style to match Swift's style.
Conditionalise some of the conformances of `WindowsBool` to not be
available without reflection or on embedded. This matches how
`DarwinBoolean` is handled.
These constants should be freely inlined as they are simply casts or
redeclarations of macros which are not importable due to the "complex"
nature of them (they involve casts or otherwise non-integral constants).
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd compnerd merged commit 8337815 into swiftlang:main Feb 21, 2025
3 checks passed
@compnerd compnerd deleted the sdk-overlay branch February 21, 2025 22:41

extension WindowsBool : CustomStringConvertible {
@_unavailableInEmbedded
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just keeping up with DarwinBoolean. I don't think that WinSDK is particularly useful with "embedded" yet. In theory, we could support IoT with the Windows IoT, but that is largely untested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant