Skip to content

Commit 4a4d01c

Browse files
Merge pull request #649 from tannergooding/main
Ensure that AggressiveInlining is emitted for the IID helpers
2 parents 6759bb0 + f01061e commit 4a4d01c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sources/ClangSharp.PInvokeGenerator/CSharp/CSharpOutputBuilder.Visit.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public void WriteIid(string name, Guid value)
8484
WriteLine(name);
8585
WriteBlockStart();
8686

87+
if (_generator.Config.GenerateAggressiveInlining)
88+
{
89+
WriteIndentedLine<string>("[MethodImpl(MethodImplOptions.AggressiveInlining)]");
90+
}
8791
WriteIndentedLine("get");
8892
WriteBlockStart();
8993

0 commit comments

Comments
 (0)