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 can't recognize function variable parameters in struct. #110

Closed
wants to merge 2 commits into from
Closed

Fix can't recognize function variable parameters in struct. #110

wants to merge 2 commits into from

Conversation

Anivie
Copy link

@Anivie Anivie commented Feb 25, 2023

Fix #95 and Fix #111

@@ -708,6 +708,9 @@ fn convert_type(typ_ string) Type {
}
if typ.contains(' ') {
}
if typ.contains('...)') {
typ = typ.replace('...)','... voidptr)')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
typ = typ.replace('...)','... voidptr)')
typ = typ.replace('...)','...voidptr)')

@ArtemkaKun
Copy link
Contributor

Hi, can you also add a test?

@Anivie
Copy link
Author

Anivie commented Feb 26, 2023

Hi, can you also add a test?

OK, I make a new pr to add test file

@Anivie Anivie closed this Feb 26, 2023
@ArtemkaKun
Copy link
Contributor

You can just push them here

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.

Error on translate double pointer on struct Can't translate function which has variable parameters
3 participants