Browse Source

Add Decimal primitive types to the AST type model.

pull/873/head
Joao Matos 9 years ago
parent
commit
5caa12375c
  1. 13
      src/AST/CppTypePrinter.cs
  2. 3
      src/AST/Type.cs

13
src/AST/CppTypePrinter.cs

@ -153,6 +153,19 @@ namespace CppSharp.AST
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException();
} }
} }
case PrimitiveType.Decimal:
{
switch (PrintFlavorKind)
{
case CppTypePrintFlavorKind.C:
case CppTypePrintFlavorKind.Cpp:
return "_Decimal32";
case CppTypePrintFlavorKind.ObjC:
return "NSDecimalNumber";;
default:
throw new ArgumentOutOfRangeException();
}
}
} }
throw new NotSupportedException(); throw new NotSupportedException();

3
src/AST/Type.cs

@ -1140,7 +1140,8 @@ namespace CppSharp.AST
Float128, Float128,
IntPtr, IntPtr,
UIntPtr, UIntPtr,
String String,
Decimal
} }
/// <summary> /// <summary>

Loading…
Cancel
Save