xo-reader2: adopt DSchematikaParser as gc-aware object
Use as virtual GC root.
This commit is contained in:
parent
c9a1793acd
commit
3686c3420d
9 changed files with 570 additions and 268 deletions
|
|
@ -89,6 +89,18 @@ namespace xo {
|
|||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
ParserStack::forward_children(obj<ACollector> gc) noexcept
|
||||
{
|
||||
|
||||
for (ParserStack * target = this; target; target = target->parent_) {
|
||||
// ParserStack::ckp: skip, POD
|
||||
|
||||
if (target->ssm_)
|
||||
target->ssm_.forward_children(gc);
|
||||
}
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue