Skip to content

Add DontUseUsingStaticsForGuidMember - #594

Merged
tannergooding merged 2 commits into
dotnet:mainfrom
curin:main
Apr 4, 2025
Merged

Add DontUseUsingStaticsForGuidMember#594
tannergooding merged 2 commits into
dotnet:mainfrom
curin:main

Conversation

@curin

@curin curin commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

This causes some issues with some renaming in Silk.NET and would like to toggle it off.


public bool StripEnumMemberTypeName => _options.HasFlag(PInvokeGeneratorConfigurationOptions.StripEnumMemberTypeName);

public bool DontUseUsingStaticsForGuidMember => _options.HasFlag(PInvokeGeneratorConfigurationOptions.DontUseUsingStaticsForGuidMember);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is some corresponding code in Program.cs of ClangSharpPInvokeGenerator that needs updating to actually set this flag (Silk.NET's ResponseFileHandler is a manually maintained subset of this Program.cs file)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good catch, fixed it

@tannergooding
tannergooding merged commit d6c9fb3 into dotnet:main Apr 4, 2025
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.

3 participants