MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / isMatchingNestedMacroAction

Function isMatchingNestedMacroAction

lib/utils/temp-variable.cpp:249–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249static bool isMatchingNestedMacroAction(MacroAction *action, const Macro *macro)
250{
251 const auto nestedMacroAction = dynamic_cast<MacroActionMacro *>(action);
252 if (!nestedMacroAction) {
253 return false;
254 }
255
256 return nestedMacroAction->_nestedMacro.get() == macro;
257}
258
259static Macro *getParentMacro(const Macro *targetMacro,
260 const std::vector<Macro *> &macros)

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected