Browse Source

Merge pull request #211 from InitialForce/feature_add_uintptr

Add PrimitiveType.UIntPtr in AST and code generators
pull/219/head
João Matos 12 years ago
parent
commit
6c11343200
  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

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

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

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

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

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

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