diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-02-18 11:42:49 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-18 11:23:27 +0100 |
commit | bf8dacf0c196eb282f3f0055746da158179b13f3 (patch) | |
tree | fa60e12c95c80462913853692fdd1bbc1fe02305 /AK/kmalloc.h | |
parent | 4b16ac003410d72b517b87ffedae3822e206a752 (diff) | |
download | serenity-bf8dacf0c196eb282f3f0055746da158179b13f3.zip |
Kernel: Add placement new[] operator
Diffstat (limited to 'AK/kmalloc.h')
-rw-r--r-- | AK/kmalloc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/AK/kmalloc.h b/AK/kmalloc.h index 634aaf10cc..6f6375e71e 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -84,6 +84,11 @@ inline void* operator new(size_t, void* ptr) { return ptr; } + +inline void* operator new[](size_t, void* ptr) +{ + return ptr; +} # endif #endif |