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

Method PushState

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:1021–1032  ·  view source on GitHub ↗

Push state returning true if successful (i.e. stack not overflowed)

Source from the content-addressed store, hash-verified

1019
1020// Push state returning true if successful (i.e. stack not overflowed)
1021bool GCodeBuffer::PushState(bool withinSameFile) noexcept
1022{
1023 // Check the current stack depth
1024 if (GetStackDepth() >= MaxStackDepth)
1025 {
1026 return false;
1027 }
1028
1029 machineState = new GCodeMachineState(*machineState, withinSameFile);
1030 reprap.InputsUpdated();
1031 return true;
1032}
1033
1034// Pop state returning true if successful (i.e. no stack underrun)
1035bool GCodeBuffer::PopState(bool withinSameFile) noexcept

Callers 1

PushMethod · 0.80

Calls 1

InputsUpdatedMethod · 0.80

Tested by

no test coverage detected