Return true if all nested macros we are running are restartable
| 168 | |
| 169 | // Return true if all nested macros we are running are restartable |
| 170 | bool 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 |
no outgoing calls
no test coverage detected