Skip to content

Commit

Permalink
Fix erroneous newline
Browse files Browse the repository at this point in the history
  • Loading branch information
Saalvage authored and tritao committed Oct 19, 2023
1 parent b4f261e commit adffc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Generators/CSharp/CSharpMarshal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ public override bool VisitPointerType(PointerType pointer, TypeQualifiers quals)
if (pointer.Pointee.IsTemplateParameterType())
Context.Before.Write($"(({Context.Parameter.Type}) (object) {Context.Parameter.Name})");
else
Context.Before.WriteLine(Context.Parameter.Name);
Context.Before.Write(Context.Parameter.Name);
Context.Before.WriteLine($".{Helpers.InstanceIdentifier};");

Context.Return.Write($"new {typePrinter.IntPtrType}(&{arg})");
Expand Down

0 comments on commit adffc99

Please sign in to comment.