Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 556 Bytes
#ifndef U_NEW_HDR
#define U_NEW_HDR
#include "u_traits.h"
// Raw memory allocation mechanism.
U_MALLOC_LIKE void *neoMalloc(size_t size);
U_MALLOC_LIKE void *neoCalloc(size_t size, size_t count);
U_MALLOC_LIKE void *neoRealloc(void *ptr, size_t size);
void neoFree(void *ptr);
inline void *operator new(size_t, void *ptr) {
return ptr;
}
inline void *operator new[](size_t, void *ptr) {
return ptr;
}
inline void operator delete(void *, void *) {
// Do nothing
}
inline void operator delete[](void *, void *) {
// Do nothing
}
#endif
You can’t perform that action at this time.