Browse Source

Ignore properties if their getter or setter methods are also ignored.

pull/13/merge
triton 12 years ago
parent
commit
2a08b6e05b
  1. 16
      src/Generator/Passes/CheckIgnoredDecls.cs

16
src/Generator/Passes/CheckIgnoredDecls.cs

@ -116,6 +116,22 @@ namespace CppSharp.Passes
return false; return false;
} }
if (property.GetMethod != null && !VisitFunctionDecl(property.GetMethod))
{
property.ExplicityIgnored = true;
Console.WriteLine("Property '{0}' was ignored due to ignored getter",
property.Name, msg);
return false;
}
if (property.SetMethod != null && !VisitFunctionDecl(property.SetMethod))
{
property.ExplicityIgnored = true;
Console.WriteLine("Property '{0}' was ignored due to ignored setter",
property.Name, msg);
return false;
}
return true; return true;
} }

Loading…
Cancel
Save