#ifndef DEF_COMMON #define DEF_COMMON #include //This file is very important : it contains type definitions, macro definitions and new/delete implementations. #define NULL 0 #include #include #include #include //Standard implemenations of operator new/delete inline void* operator new(u32int, void *p) { return p; } inline void* operator new[](u32int, void *p) { return p; } inline void operator delete(void*, void*) { } inline void operator delete[](void*, void*) { } inline void* operator new(u32int sz) { return Mem::alloc(sz); } inline void* operator new[](u32int sz) { return Mem::alloc(sz); } inline void operator delete(void *ptr) { Mem::free(ptr); } inline void operator delete[](void *ptr) { Mem::free(ptr); } #endif