We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
struct a { struct a *next; struct a *prev; };
produces
public unsafe partial struct a { [NativeTypeName("struct a*")] public struct a* next; [NativeTypeName("struct a*")] public struct a* prev; }
The text was updated successfully, but these errors were encountered:
@tannergooding any suggestions on this one?
Sorry, something went wrong.
This looks to be specific to processing in C mode. It works as expected for C++ mode.
It looks like in both cases it is a Pointer where the PointeeType is an ElaboratedType and the NamedType is then a TagType. However, for C++ the TagType has a name of a while in C it is struct a and so there would need to be a check that strips the struct or enum prefix from it in this case: https://github.com/microsoft/ClangSharp/blob/master/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs#L1305
TagType
a
struct a
struct
enum
Successfully merging a pull request may close this issue.
produces
The text was updated successfully, but these errors were encountered: