diff --git a/src/AST/Type.cs b/src/AST/Type.cs index 5fa4fb89..0ca5c828 100644 --- a/src/AST/Type.cs +++ b/src/AST/Type.cs @@ -664,6 +664,7 @@ namespace CppSharp.AST Float, Double, IntPtr, + UIntPtr, Char16 } diff --git a/src/Generator/Generators/CLI/CLITypePrinter.cs b/src/Generator/Generators/CLI/CLITypePrinter.cs index 8fc1645d..9875cfbe 100644 --- a/src/Generator/Generators/CLI/CLITypePrinter.cs +++ b/src/Generator/Generators/CLI/CLITypePrinter.cs @@ -185,6 +185,7 @@ namespace CppSharp.Generators.CLI case PrimitiveType.Float: return "float"; case PrimitiveType.Double: return "double"; case PrimitiveType.IntPtr: return "IntPtr"; + case PrimitiveType.UIntPtr: return "UIntPtr"; } throw new NotSupportedException(); diff --git a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs index 9b5521fa..5930afb1 100644 --- a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs +++ b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs @@ -381,6 +381,7 @@ namespace CppSharp.Generators.CSharp case PrimitiveType.Float: return "float"; case PrimitiveType.Double: return "double"; case PrimitiveType.IntPtr: return "global::System.IntPtr"; + case PrimitiveType.UIntPtr: return "global::System.UIntPtr"; } throw new NotSupportedException(); diff --git a/src/Generator/Types/CppTypePrinter.cs b/src/Generator/Types/CppTypePrinter.cs index 98f1c277..f8083593 100644 --- a/src/Generator/Types/CppTypePrinter.cs +++ b/src/Generator/Types/CppTypePrinter.cs @@ -111,6 +111,7 @@ namespace CppSharp.Types case PrimitiveType.Float: return "float"; case PrimitiveType.Double: return "double"; case PrimitiveType.IntPtr: return "void*"; + case PrimitiveType.UIntPtr: return "uintptr_t"; } throw new NotSupportedException();