diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-12-27 12:49:18 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-12-27 12:49:18 +0300 |
commit | 8410c40b4d1d26155f62045038c4140a4e5616b6 (patch) | |
tree | 40a0d420909f3cd0b8c8a2ca1791badbc3e6d12a /src/Endstops/ZProbeEndstop.h | |
parent | f3390f52234c967c624ca1f725cb98af1c314e93 (diff) |
Use new macros in FreelistManager.h
Diffstat (limited to 'src/Endstops/ZProbeEndstop.h')
-rw-r--r-- | src/Endstops/ZProbeEndstop.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Endstops/ZProbeEndstop.h b/src/Endstops/ZProbeEndstop.h index 3a1db7a2..9c4f776c 100644 --- a/src/Endstops/ZProbeEndstop.h +++ b/src/Endstops/ZProbeEndstop.h @@ -13,8 +13,7 @@ class ZProbeEndstop final : public Endstop { public: - void* operator new(size_t sz) noexcept { return FreelistManager::Allocate<ZProbeEndstop>(); } - void operator delete(void* p) noexcept { FreelistManager::Release<ZProbeEndstop>(p); } + DECLARE_FREELIST_NEW_DELETE(ZProbeEndstop) ZProbeEndstop(uint8_t p_axis, EndStopPosition pos) noexcept; |