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

Method CanRestartMacro

src/GCodes/GCodeMachineState.cpp:170–182  ·  view source on GitHub ↗

Return true if all nested macros we are running are restartable

Source from the content-addressed store, hash-verified

168
169// Return true if all nested macros we are running are restartable
170bool GCodeMachineState::CanRestartMacro() const noexcept
171{
172 const GCodeMachineState *_ecv_null p = this;
173 do
174 {
175 if (p->doingFileMacro && !p->macroRestartable)
176 {
177 return false;
178 }
179 p = p->previous;
180 } while (p != nullptr);
181 return true;
182}
183
184#if HAS_SBC_INTERFACE
185

Callers 3

AbortPrintMethod · 0.80
GCodes2.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected