Skip to content

Add validation that the StackBufferSize member exists when a stackalloc constructor exists. - #125

Merged
jkoritzinsky merged 1 commit into
dotnet:DllImportGeneratorfrom
jkoritzinsky:StackBufferSize
Sep 26, 2020
Merged

jkoritzinsky merged 1 commit into
dotnet:DllImportGeneratorfrom
jkoritzinsky:StackBufferSize

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

While working on a prototype of the non-blittable struct marshalling, I discovered that I forgot to add validation for the StackBufferSize member in the ManualTypeMarshallingAnalyzer.

This validates that the StackBufferSize constant exists when a stackalloc constructor exists as per the spec.

@jkoritzinsky jkoritzinsky added the area-DllImportGenerator Source Generated stubs for P/Invokes in C# label Sep 25, 2020
@jkoritzinsky
jkoritzinsky merged commit 9e7e221 into dotnet:DllImportGenerator Sep 26, 2020
@jkoritzinsky
jkoritzinsky deleted the StackBufferSize branch September 26, 2020 00:33
jkoritzinsky added a commit to jkoritzinsky/runtime that referenced this pull request Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-DllImportGenerator Source Generated stubs for P/Invokes in C#

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants