Update AllocRoutines.h

This commit is contained in:
John Platts
2022-09-19 13:36:10 -05:00
committed by GitHub
parent 01125e030e
commit 32e071ab89

View File

@@ -30,15 +30,15 @@ FLATLAF_WIN32_ALLOC_INLINE void* operator new(size_t cb, const NoThrowingWin32He
return AllocateUsingProcessHeap(cb);
}
inline void* operator new[](size_t cb, const NoThrowingWin32HeapAllocT& tag) noexcept {
FLATLAF_WIN32_ALLOC_INLINE void* operator new[](size_t cb, const NoThrowingWin32HeapAllocT& tag) noexcept {
return AllocateUsingProcessHeap(cb);
}
inline void operator delete(void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
FLATLAF_WIN32_ALLOC_INLINE void operator delete(void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
DeleteFromProcessHeap(pv);
}
inline void operator delete[](void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
FLATLAF_WIN32_ALLOC_INLINE void operator delete[](void* pv, const NoThrowingWin32HeapAllocT& tag) noexcept {
DeleteFromProcessHeap(pv);
}
#endif