blob: 5b66ba1625c08a6d606636245339c96fcb46aeb5 (
plain) (
tree)
|
|
#ifndef DEF_FWIK_CPPSUPPORT_H
#define DEF_FWIK_CPPSUPPORT_H
#include <stdlib.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 malloc(size); }
inline void* operator new[] (size_t size) { return malloc(size); }
inline void operator delete (void* ptr) { return free(ptr); }
inline void operator delete[] (void* ptr) { return free(ptr); }
#endif
|