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();