Skip to content

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

Merged
tritao merged 1 commit intomono:mainfrom
Saalvage:fix/value-type-out-param-return
Oct 18, 2023
Merged

Fix non-void returning functions with value-type out parameters#1775
tritao merged 1 commit intomono:mainfrom
Saalvage:fix/value-type-out-param-return

Conversation

@Saalvage
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

tritao commented Oct 18, 2023

Keep them coming :)

@tritao tritao merged commit 7f567b6 into mono:main Oct 18, 2023
@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