Browse Source

Fixed the C# generator to wrap void* as IntPtr.

pull/159/head
triton 12 years ago
parent
commit
3c7709e5cd
  1. 4
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

4
src/Generator/Generators/CSharp/CSharpTypePrinter.cs

@ -202,6 +202,10 @@ namespace CppSharp.Generators.CSharp @@ -202,6 +202,10 @@ namespace CppSharp.Generators.CSharp
if (ContextKind == CSharpTypePrinterContextKind.GenericDelegate)
return "global::System.IntPtr";
if (primitive == PrimitiveType.Void)
return "global::System.IntPtr";
return VisitPrimitiveType(primitive, quals) + "*";
}

Loading…
Cancel
Save