From e9992894cfb3210f05ea29f0ce353260bbb8cdfb Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 16 Sep 2016 16:41:33 +0100 Subject: [PATCH] Type ignore checker will now check for ignored array elements and unsupported types. --- src/Generator/Types/Types.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Generator/Types/Types.cs b/src/Generator/Types/Types.cs index f2632c9e..73c534ff 100644 --- a/src/Generator/Types/Types.cs +++ b/src/Generator/Types/Types.cs @@ -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 Ignore(); return false; } + + public override bool VisitUnsupportedType(UnsupportedType type, TypeQualifiers quals) + { + Ignore(); + return false; + } } }