Skip to content

Opaquepointer interop #78315

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 5 commits into from
Jan 3, 2025
Merged

Conversation

hnrklssn
Copy link
Contributor

This makes it possible to mark a pointer with __sized_by when the pointee type definition is not included. The wrapper function has the same interface as if the parameter were a void pointer, since the stdlib has no OpaqueBufferPointer type.

This makes it possible to mark a pointer with __sized_by when the
pointee type definition is not included. The wrapper function has the
same interface as if the parameter were a void pointer, since the stdlib
has no `OpaqueBufferPointer` type.
@hnrklssn hnrklssn force-pushed the opaquepointer-interop branch from 2e6a2fd to 4005306 Compare December 20, 2024 11:20
@hnrklssn hnrklssn requested a review from DougGregor December 20, 2024 11:20
@hnrklssn
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

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

Overall looks good to me, some nits/questions inline.

@hnrklssn
Copy link
Contributor Author

hnrklssn commented Jan 3, 2025

@swift-ci please smoke test

Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

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

LGTM!

@hnrklssn
Copy link
Contributor Author

hnrklssn commented Jan 3, 2025

@swift-ci please smoke test

@hnrklssn hnrklssn enabled auto-merge (squash) January 3, 2025 14:24
@hnrklssn hnrklssn merged commit e252cbb into swiftlang:main Jan 3, 2025
3 checks passed
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.

2 participants