blob: cf08ede8429ad1076dc60f5836300a0627f3a109 (
plain) (
tree)
|
|
#ifndef DEF_CPPSUPPORT_H
#define DEF_CPPSUPPORT_H
#include <mem/mem.h>
inline void* operator new(size_t, void* p) throw() { return p; }
inline void* operator new[](size_t, void* p) throw() { return p; }
inline void operator delete (void*, void*) throw() { };
inline void operator delete[](void*, void*) throw() { };
inline void* operator new (size_t size) { return kmalloc(size); }
inline void* operator new[] (size_t size) { return kmalloc(size); }
inline void operator delete (void* ptr) { return kfree(ptr); }
inline void operator delete[] (void* ptr) { return kfree(ptr); }
#endif
|