mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-25 14:08:23 -05: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);
|
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_base__[];
|
||||||
extern uint8_t __heap_end__[];
|
extern uint8_t __heap_end__[];
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ void* operator new(size_t size);
|
|||||||
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* p);
|
void operator delete[](void* p);
|
||||||
|
void operator delete(void* ptr, std::size_t);
|
||||||
|
void operator delete[](void* ptr, std::size_t);
|
||||||
|
|
||||||
namespace chibios {
|
namespace chibios {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user