diff --git a/src/Core/Parser/ASTConverter.cs b/src/Core/Parser/ASTConverter.cs index c30dcc38..e637087f 100644 --- a/src/Core/Parser/ASTConverter.cs +++ b/src/Core/Parser/ASTConverter.cs @@ -1408,7 +1408,7 @@ namespace CppSharp void VisitPreprocessedEntity(PreprocessedEntity entity, AST.PreprocessedEntity _entity) { VisitDeclaration(entity, _entity); - _entity.MacroLocation = VisitMacroLocation(entity.Location); + _entity.MacroLocation = VisitMacroLocation(entity.MacroLocation); } private AST.MacroLocation VisitMacroLocation(MacroLocation location)