Browse Source

Fixed visitor regression when visiting declaration contexts.

pull/778/head
Joao Matos 8 years ago
parent
commit
8b2b260d16
  1. 2
      src/Generator/Generators/CodeGenerator.cs

2
src/Generator/Generators/CodeGenerator.cs

@ -249,7 +249,7 @@ namespace CppSharp.Generators @@ -249,7 +249,7 @@ namespace CppSharp.Generators
public virtual bool VisitDeclContext(DeclarationContext context)
{
foreach (var decl in context.Declarations)
if (!decl.IsGenerated)
if (decl.IsGenerated)
decl.Visit(this);
return true;

Loading…
Cancel
Save