Browse Source

Fix erroneous newline

pull/1776/head
Salvage 2 years ago
parent
commit
3fdc058ea5
No known key found for this signature in database
GPG Key ID: 1362C7A680BA7451
  1. 2
      src/Generator/Generators/CSharp/CSharpMarshal.cs

2
src/Generator/Generators/CSharp/CSharpMarshal.cs

@ -647,7 +647,7 @@ namespace CppSharp.Generators.CSharp @@ -647,7 +647,7 @@ namespace CppSharp.Generators.CSharp
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})");

Loading…
Cancel
Save