11 #ifndef NO_LIBGXX_MALLOC
12 #define MALLOC_ALIGN_MASK 7 /* ptrs aligned at 8 byte boundaries */
13 #define MALLOC_MIN_OVERHEAD 8 /* 8 bytes of overhead per pointer */
16 typedef void (*new_handler_t
)();
17 extern "C" void default_new_handler();
18 extern "C" new_handler_t
set_new_handler(new_handler_t
);
21 #define NEW(where) new { where }
24 // default placement version of operator new
25 static inline void *operator new(size_t, void *place
) { return place
; }
27 // provide a C++ interface to vector-resize via realloc
28 static inline void *operator new(size_t size
, void *ptr
, size_t new_len
)
30 return realloc(ptr
, new_len
* size
);