mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 03:34:35 +00:00
C++14: Add two-argument delete() implementations.
Just passing to one-argument versions.
This commit is contained in:
parent
a22dc150bc
commit
0d1e48ae9c
@ -41,6 +41,14 @@ void operator delete[](void* p) noexcept {
|
||||
chHeapFree(p);
|
||||
}
|
||||
|
||||
void operator delete(void* ptr, std::size_t) noexcept {
|
||||
::operator delete(ptr);
|
||||
}
|
||||
|
||||
void operator delete[](void* ptr, std::size_t) noexcept {
|
||||
::operator delete(ptr);
|
||||
}
|
||||
|
||||
extern uint8_t __heap_base__[];
|
||||
extern uint8_t __heap_end__[];
|
||||
|
||||
|
@ -30,6 +30,8 @@ void* operator new(size_t size);
|
||||
void* operator new[](size_t size);
|
||||
void operator delete(void* p);
|
||||
void operator delete[](void* p);
|
||||
void operator delete(void* ptr, std::size_t);
|
||||
void operator delete[](void* ptr, std::size_t);
|
||||
|
||||
namespace chibios {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user