Browse Source

Wrapped void* as IntPtr because unlike int*, char*, etc., void* is just ugly and not useful.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/347/head
Dimitar Dobrev 11 years ago
parent
commit
b231b00de1
  1. 3
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

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

@ -220,7 +220,8 @@ namespace CppSharp.Generators.CSharp @@ -220,7 +220,8 @@ namespace CppSharp.Generators.CSharp
if (isManagedContext && param != null && (param.IsOut || param.IsInOut))
return pointee.Visit(this, quals);
if (ContextKind == CSharpTypePrinterContextKind.GenericDelegate)
if (ContextKind == CSharpTypePrinterContextKind.GenericDelegate ||
pointee.IsPrimitiveType(PrimitiveType.Void))
return "global::System.IntPtr";
return pointee.Visit(this, quals) + "*";

Loading…
Cancel
Save