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

Fix non-void returning functions with value-type out parameters #1775

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

Saalvage
Copy link
Contributor

@Saalvage Saalvage commented Oct 18, 2023

I'm really sorry for yet another PR, but I managed to miss this in the original PR that fixed value-type out parameters..

Previously the return was generated outside of the fixed scopes, while trying to use a variable declared within them.

On the bright side, this also fixes the indentation!

This also fixes #978 (which is coincidentally my exact use case leading me to discover this bug!)

@tritao
Copy link
Collaborator

tritao commented Oct 18, 2023

Keep them coming :)

@tritao tritao merged commit 7f567b6 into mono:main Oct 18, 2023
5 checks passed
@Saalvage Saalvage deleted the fix/value-type-out-param-return branch October 18, 2023 16:39
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.

CppSharp generates incorrect bindings for SDL_Event
2 participants