Skip to content

Conversation

kevaundray
Copy link
Contributor

Since the functions always have visibility public, if the class and the structures have visibility internal/private, then the c# compiler will complain with CS0051 -- In general, its good to be able to modify the accessibility of PInvoke methods as they should ideally not be directly accessed outside of the project.

@neuecc
Copy link
Member

neuecc commented Jul 8, 2024

Thank you, I will adopt the change as there seems to be no problems caused by the change.

@neuecc neuecc merged commit 068e1e7 into Cysharp:main Jul 8, 2024
@kevaundray
Copy link
Contributor Author

Thank you, I will adopt the change as there seems to be no problems caused by the change.

Thanks -- do you know when the next release will be with these changes?

@neuecc
Copy link
Member

neuecc commented Jul 9, 2024

released!

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