From e0e507b938ca5f6adec0469478ec3d01a5533bb4 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 12 Aug 2013 17:11:26 +0100 Subject: [PATCH] Implemented type printing support for PrimitiveType.IntPtr. --- src/Generator/Generators/CLI/CLITypePrinter.cs | 1 + src/Generator/Types/CppTypePrinter.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Generator/Generators/CLI/CLITypePrinter.cs b/src/Generator/Generators/CLI/CLITypePrinter.cs index 83f5ecba..47751341 100644 --- a/src/Generator/Generators/CLI/CLITypePrinter.cs +++ b/src/Generator/Generators/CLI/CLITypePrinter.cs @@ -169,6 +169,7 @@ namespace CppSharp.Generators.CLI case PrimitiveType.UInt64: return "unsigned long long"; case PrimitiveType.Float: return "float"; case PrimitiveType.Double: return "double"; + case PrimitiveType.IntPtr: return "IntPtr"; } throw new NotSupportedException(); diff --git a/src/Generator/Types/CppTypePrinter.cs b/src/Generator/Types/CppTypePrinter.cs index 8dc17bb0..562b6d8e 100644 --- a/src/Generator/Types/CppTypePrinter.cs +++ b/src/Generator/Types/CppTypePrinter.cs @@ -86,6 +86,7 @@ namespace CppSharp.Types case PrimitiveType.UInt64: return "unsigned long long"; case PrimitiveType.Float: return "float"; case PrimitiveType.Double: return "double"; + case PrimitiveType.IntPtr: return "void*"; } throw new NotSupportedException();