Browse Source

Fixed processing of classes in CheckMacrosPass.

We had previously added an early out for declaration contexts but this is not correct for classes since they need to have their preprocessed entities processed by the rest of the pass.
pull/169/head
triton 12 years ago
parent
commit
38009ce337
  1. 2
      src/Generator/Passes/CheckMacrosPass.cs

2
src/Generator/Passes/CheckMacrosPass.cs

@ -46,7 +46,7 @@ namespace CppSharp.Passes @@ -46,7 +46,7 @@ namespace CppSharp.Passes
if (AlreadyVisited(decl))
return false;
if (decl is DeclarationContext)
if (decl is DeclarationContext && !(decl is Class))
return true;
var expansions = decl.PreprocessedEntities.OfType<MacroExpansion>();

Loading…
Cancel
Save