| 313 | } |
| 314 | |
| 315 | GCodeMachineState *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 | |
| 326 | void GCodeMachineState::SetState(GCodeState newState) noexcept |
| 327 | { |