| 316 | } |
| 317 | |
| 318 | static int getDepth(MacroSegment *segment, const Macro *macro, int depth = 0) |
| 319 | { |
| 320 | if (!macro) { |
| 321 | return -1; |
| 322 | } |
| 323 | |
| 324 | if (segmentIsPartOfMacro(segment, macro)) { |
| 325 | return depth; |
| 326 | } |
| 327 | |
| 328 | return getDepth(segment, getParentMacro(macro), depth + 1); |
| 329 | } |
| 330 | |
| 331 | void TempVariableRef::Save(obs_data_t *obj, Macro *macro, |
| 332 | const char *name) const |
no test coverage detected