Browse Source

Skipped already visited functions in the pass for finding symbols.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/523/merge
Dimitar Dobrev 10 years ago
parent
commit
59de162056
  1. 5
      src/Generator/Passes/FindSymbolsPass.cs

5
src/Generator/Passes/FindSymbolsPass.cs

@ -6,6 +6,9 @@ namespace CppSharp.Passes @@ -6,6 +6,9 @@ namespace CppSharp.Passes
{
public override bool VisitDeclaration(Declaration decl)
{
if (!base.VisitDeclaration(decl))
return false;
var options = Driver.Options;
if (!options.CheckSymbols || options.IsCLIGenerator)
return false;
@ -19,7 +22,7 @@ namespace CppSharp.Passes @@ -19,7 +22,7 @@ namespace CppSharp.Passes
return false;
}
return base.VisitDeclaration(decl);
return true;
}
private bool VisitMangledDeclaration(IMangledDecl mangledDecl)

Loading…
Cancel
Save