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

Method Pop

src/GCodes/GCodeMachineState.cpp:315–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315GCodeMachineState *GCodeMachineState::Pop() const noexcept
316{
317 GCodeMachineState * const rslt = _ecv_not_null(GetPrevious());
318 if (!errorMessage.IsNull())
319 {
320 rslt->errorMessage = errorMessage;
321 rslt->stateMachineResult = stateMachineResult;
322 }
323 return rslt;
324}
325
326void GCodeMachineState::SetState(GCodeState newState) noexcept
327{

Callers

nothing calls this directly

Calls 1

IsNullMethod · 0.45

Tested by

no test coverage detected