diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-13 19:26:02 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-13 19:26:02 +0300 |
commit | c8d8380a2c6679ef0170d374d5f34354616e0e10 (patch) | |
tree | 4dc43a67edf60567ace4718a45a771f2018ad872 /src/Endstops/SwitchEndstop.h | |
parent | 36a72fd1cbc274a6f932294f184133e08d681858 (diff) |
Various
FreelistManager in RRFLibraries now has its own namespace
Class GCodeMachineState now uses FreelistManager to manage its storage
Leading tabs are treated as going to the next multiple of 4 spaces from
start of line or end of line number etc.
Generate warning if both tabs and spaces are used to indent blocks
Diffstat (limited to 'src/Endstops/SwitchEndstop.h')
-rw-r--r-- | src/Endstops/SwitchEndstop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Endstops/SwitchEndstop.h b/src/Endstops/SwitchEndstop.h index 0e4c46af..bbfb7874 100644 --- a/src/Endstops/SwitchEndstop.h +++ b/src/Endstops/SwitchEndstop.h @@ -16,8 +16,8 @@ class SwitchEndstop : public Endstop { public: - void* operator new(size_t sz) noexcept { return Allocate<SwitchEndstop>(); } - void operator delete(void* p) noexcept { Release<SwitchEndstop>(p); } + void* operator new(size_t sz) noexcept { return FreelistManager::Allocate<SwitchEndstop>(); } + void operator delete(void* p) noexcept { FreelistManager::Release<SwitchEndstop>(p); } ~SwitchEndstop() noexcept override; SwitchEndstop(uint8_t axis, EndStopPosition pos) noexcept; |