Skip to content

Conversation

@gucio321
Copy link
Collaborator

No description provided.

since we already handle receiver, we can remove great part of this function ;-)
replace enigmatic outArg type with ArugmentWrapperData; rewrite argument_wrapper.go to use it immadinatly
this change allows to split function body into variable deffinitions and finisher that should be called after C call.

generateFuncBody function now returns a list of string
of (mentioned above) variables and finishers
instead of instatnly writting them into stringsBuilder.

This solution allows me to fix AllenDang#89 by simply calling finisher of
output argument just before return statement so that it becomes
updated correctly and pointer's value is valid
Copy link
Owner

@AllenDang AllenDang left a comment

Choose a reason for hiding this comment

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

LGTM

@AllenDang AllenDang merged commit ed1e331 into AllenDang:main Jan 17, 2023
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