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

Loading…
Cancel
Save