mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
AK: Clean up some of the confusion that is AK/kmalloc.{cpp,h}
This commit is contained in:
parent
d11b5407a3
commit
60f236b285
7 changed files with 0 additions and 368 deletions
|
@ -27,11 +27,6 @@ void kfree(void* ptr);
|
|||
|
||||
}
|
||||
|
||||
#ifdef KERNEL
|
||||
inline void* operator new(size_t, void* p) { return p; }
|
||||
inline void* operator new[](size_t, void* p) { return p; }
|
||||
#else
|
||||
|
||||
inline void* operator new(size_t size)
|
||||
{
|
||||
return kmalloc(size);
|
||||
|
@ -53,5 +48,3 @@ inline void operator delete[](void* ptr)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue