| 355 | } |
| 356 | |
| 357 | void GCodeMachineState::EndBlock() noexcept |
| 358 | { |
| 359 | if (blockNesting != 0) |
| 360 | { |
| 361 | BlockState *const oldBs = currentBlockState; |
| 362 | currentBlockState = _ecv_not_null(currentBlockState->GetPrevious()); |
| 363 | delete oldBs; |
| 364 | --blockNesting; |
| 365 | variables.EndScope(blockNesting); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | void GCodeMachineState::ClearBlocks() noexcept |
| 370 | { |
no test coverage detected