Пример #1
0
void c_Generator::done() {
  assert(getState() == State::Running);
  cellSetNull(m_key);
  cellSetNull(m_value);
  setState(State::Done);
}
Пример #2
0
void Generator::done(TypedValue tv) {
  assert(getState() == State::Running);
  cellSetNull(m_key);
  cellSet(*tvToCell(&tv), m_value);
  setState(State::Done);
}