mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-10-28 19:40:22 -05:00
Enable search for variable in macro
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user