summaryrefslogblamecommitdiff
path: root/src/user/lib/fwik/include/cpp.h
blob: 5b66ba1625c08a6d606636245339c96fcb46aeb5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                  
#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