Browse Source

Ignore `stripLabelLikeStatements` property in bootstrap generator.

This is not really necessary and causes StackOverflow exceptions when parsing statements.
pull/1192/head
Joao Matos 6 years ago
parent
commit
e0875c7a8c
  1. 8
      src/CppParser/Bootstrap/Bootstrap.cs

8
src/CppParser/Bootstrap/Bootstrap.cs

@ -359,6 +359,14 @@ namespace CppSharp @@ -359,6 +359,14 @@ namespace CppSharp
return base.VisitClassDecl(@class);
}
public override bool VisitProperty(Property property)
{
if (property.Name == "stripLabelLikeStatements")
property.ExplicitlyIgnore();
return base.VisitProperty(property);
}
public override bool VisitEnumDecl(Enumeration @enum)
{
if (AlreadyVisited(@enum))

Loading…
Cancel
Save