MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / EndBlock

Method EndBlock

src/GCodes/GCodeMachineState.cpp:357–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void 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
369void GCodeMachineState::ClearBlocks() noexcept
370{

Callers 1

THROWSFunction · 0.80

Calls 2

EndScopeMethod · 0.80
GetPreviousMethod · 0.45

Tested by

no test coverage detected