Skip to content
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

Account for [noexcept] in WinMD when generating functions #179

Open
tristanlabelle opened this issue Jul 12, 2024 · 3 comments
Open

Account for [noexcept] in WinMD when generating functions #179

tristanlabelle opened this issue Jul 12, 2024 · 3 comments

Comments

@tristanlabelle
Copy link
Contributor

We should be able to author WinMD components with [noexcept] and have them project into Swift without throws

@tristanlabelle
Copy link
Contributor Author

Moved from bcny-internal bug. [noexcept] might not make sense since the method could declare itself noexcept, but in order to call it we might need to resolve an activation factory and project arguments, which might involve failable operations.

@stevenbrix
Copy link
Collaborator

i think this is already complete?

@stevenbrix
Copy link
Collaborator

auto maybe_throws = is_noexcept(type, method) ? "" : " throws";

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

No branches or pull requests

2 participants