KraKern

C++ Kernel
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/KraKern

commit 040e6a5a43738b9ef17a7078563de10ed266dcbb
parent b179760c6570a65c8be714da2d0c3636ee97c7d7
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue,  9 Jan 2018 11:27:47 +0100

[CXX Wrappers] NEW: Overload for operator delete(void *, uint_t)

Simple operator overload in order to compile properly.

 _________________________________________
/ If you pick up a starving dog and make  \
| him prosperous, he will not bite you.   |
| This is the principal difference        |
| between a dog and a man. -- Mark Twain, |
\ "Pudd'nhead Wilson's Calendar"          /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Diffstat:
Mlib/cxx.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/cxx.cpp b/lib/cxx.cpp @@ -59,6 +59,12 @@ void operator delete[](void *ptr) { ::operator delete(ptr); } +void operator delete(void *ptr, unsigned int __useless) { + (void)__useless; + + ::operator delete(ptr); +} + void* operator new[](u32 len) { return ::operator new(len); }