diff options
Diffstat (limited to 'AK')
-rw-r--r-- | AK/kmalloc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/AK/kmalloc.h b/AK/kmalloc.h index 6e0c864488..0d071972b4 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -47,6 +47,7 @@ # define krealloc realloc # ifdef __serenity__ + inline void* operator new(size_t size) { return kmalloc(size); @@ -57,6 +58,11 @@ inline void operator delete(void* ptr) return kfree(ptr); } +inline void operator delete(void* ptr, size_t) +{ + return kfree(ptr); +} + inline void* operator new[](size_t size) { return kmalloc(size); @@ -67,6 +73,11 @@ inline void operator delete[](void* ptr) return kfree(ptr); } +inline void operator delete[](void* ptr, size_t) +{ + return kfree(ptr); +} + inline void* operator new(size_t, void* ptr) { return ptr; |