Enable search for variable in macro

This commit is contained in:
WarmUpTill
2026-10-19 18:44:30 +02:00
committed by WarmUpTill
parent d0f483b634
commit 1bfe56992b
5 changed files with 65 additions and 1 deletions

View File

@@ -32,4 +32,13 @@ std::unordered_map<std::string, VariableUsage> GetVariableUsage()
return result;
}
std::unordered_map<std::string, int> GetVariablesUsedByMacro(Macro *macro)
{
if (!macro) {
return {};
}
return collectReferences(macro);
}
} // namespace advss