Browse Source

Add PrimitiveType.UIntPtr in AST and code generators

pull/211/head
Øystein Krog 12 years ago
parent
commit
065b8054b2
  1. 1
      src/AST/Type.cs
  2. 1
      src/Generator/Generators/CLI/CLITypePrinter.cs
  3. 1
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs
  4. 1
      src/Generator/Types/CppTypePrinter.cs

1
src/AST/Type.cs

@ -818,6 +818,7 @@ namespace CppSharp.AST @@ -818,6 +818,7 @@ namespace CppSharp.AST
Float,
Double,
IntPtr,
UIntPtr,
Char16
}

1
src/Generator/Generators/CLI/CLITypePrinter.cs

@ -184,6 +184,7 @@ namespace CppSharp.Generators.CLI @@ -184,6 +184,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();

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

@ -380,6 +380,7 @@ namespace CppSharp.Generators.CSharp @@ -380,6 +380,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();

1
src/Generator/Types/CppTypePrinter.cs

@ -111,6 +111,7 @@ namespace CppSharp.Types @@ -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();

Loading…
Cancel
Save