summaryrefslogtreecommitdiff
path: root/AK/kmalloc.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-02-18 11:42:49 +0300
committerAndreas Kling <kling@serenityos.org>2020-02-18 11:23:27 +0100
commitbf8dacf0c196eb282f3f0055746da158179b13f3 (patch)
treefa60e12c95c80462913853692fdd1bbc1fe02305 /AK/kmalloc.h
parent4b16ac003410d72b517b87ffedae3822e206a752 (diff)
downloadserenity-bf8dacf0c196eb282f3f0055746da158179b13f3.zip
Kernel: Add placement new[] operator
Diffstat (limited to 'AK/kmalloc.h')
-rw-r--r--AK/kmalloc.h5
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