Save (some of) the state of the machine for recovery in the future.
| 1849 | |
| 1850 | // Save (some of) the state of the machine for recovery in the future. |
| 1851 | bool GCodes::Push(GCodeBuffer& gb, bool withinSameFile) noexcept |
| 1852 | { |
| 1853 | const bool ok = gb.PushState(withinSameFile); |
| 1854 | if (!ok) |
| 1855 | { |
| 1856 | platform.MessageF(ErrorMessage, "Push(): stack overflow on %s\n", gb.GetChannel().ToString()); |
| 1857 | AbortPrint(gb); |
| 1858 | } |
| 1859 | return ok; |
| 1860 | } |
| 1861 | |
| 1862 | // Recover a saved state |
| 1863 | void GCodes::Pop(GCodeBuffer& gb, bool withinSameFile) noexcept |
no test coverage detected