Skip to content

Commit 4ded4a2

Browse files
Merge pull request #393 from tannergooding/main
Ensure that we null out the stream for generate-multi-file
2 parents 2573a5a + 88f1686 commit 4ded4a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,11 @@ static void GenerateTransparentStructs(PInvokeGenerator generator, Stream? strea
11371137
{
11381138
sw.WriteLine('}');
11391139
}
1140+
1141+
if (!leaveStreamOpen)
1142+
{
1143+
stream = null;
1144+
}
11401145
}
11411146

11421147
static (int srcSize, int dstSize, int sign) GetSizeAndSignOf(string type)

0 commit comments

Comments
 (0)