From 3c7709e5cdc5f11def7851fe921403723cb89a2e Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 28 Jan 2014 01:29:41 +0000 Subject: [PATCH] Fixed the C# generator to wrap void* as IntPtr. --- src/Generator/Generators/CSharp/CSharpTypePrinter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs index a526c484..e9e1d4fd 100644 --- a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs +++ b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs @@ -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) + "*"; }