Browse Source

Type ignore checker will now check for ignored array elements and unsupported types.

pull/696/head
Joao Matos 9 years ago
parent
commit
e9992894cf
  1. 9
      src/Generator/Types/Types.cs

9
src/Generator/Types/Types.cs

@ -132,6 +132,9 @@ namespace CppSharp @@ -132,6 +132,9 @@ namespace CppSharp
return false;
}
if (!array.QualifiedType.Visit(this))
return false;
if (array.SizeType != ArrayType.ArraySize.Constant)
return true;
@ -149,6 +152,12 @@ namespace CppSharp @@ -149,6 +152,12 @@ namespace CppSharp
Ignore();
return false;
}
public override bool VisitUnsupportedType(UnsupportedType type, TypeQualifiers quals)
{
Ignore();
return false;
}
}
}

Loading…
Cancel
Save