Browse Source

Added access specifier checking for methods to CheckIgnoredDecls pass.

pull/34/merge
triton 12 years ago
parent
commit
e89d6696d8
  1. 14
      src/Generator/Passes/CheckIgnoredDecls.cs

14
src/Generator/Passes/CheckIgnoredDecls.cs

@ -81,6 +81,20 @@ namespace CppSharp.Passes @@ -81,6 +81,20 @@ namespace CppSharp.Passes
return true;
}
public override bool VisitMethodDecl(Method method)
{
if (!VisitDeclaration(method))
return false;
if (method.Access != AccessSpecifier.Public)
{
method.ExplicityIgnored = true;
return false;
}
return base.VisitMethodDecl(method);
}
public override bool VisitTypedefDecl(TypedefDecl typedef)
{
if (!VisitDeclaration(typedef))

Loading…
Cancel
Save