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

Method CreateBlock

src/GCodes/GCodeMachineState.cpp:350–355  ·  view source on GitHub ↗

Create a new block returning true if successful, false if maximum indent level exceeded

Source from the content-addressed store, hash-verified

348
349// Create a new block returning true if successful, false if maximum indent level exceeded
350void GCodeMachineState::CreateBlock(uint16_t indentLevel) noexcept
351{
352 currentBlockState = new BlockState(currentBlockState);
353 ++blockNesting;
354 currentBlockState->SetPlainBlock(indentLevel);
355}
356
357void GCodeMachineState::EndBlock() noexcept
358{

Callers 1

THROWSFunction · 0.80

Calls 1

SetPlainBlockMethod · 0.80

Tested by

no test coverage detected