forked from 0ad/0ad
janwas
4aa740bff5
- wposix.cpp: initial support for MEM_RESERVE and MEM_COMMIT semantics in mmap - cstr: removed no longer necessary serialization header - xmlutils: wrap new() calls in nommgr/mmgr; allows tracking other allocs in this file. - add u64_from_u32 - various minor comments/improvements. This was SVN commit r2604.
19 lines
390 B
C
19 lines
390 B
C
// remove all of mmgr.h's memory allocation "hooks" -
|
|
// but only if we actually defined them!
|
|
#if CONFIG_USE_MMGR || HAVE_VC_DEBUG_ALLOC
|
|
# undef new
|
|
# undef delete
|
|
# undef malloc
|
|
# undef calloc
|
|
# undef realloc
|
|
# undef free
|
|
# undef strdup
|
|
# undef wcsdup
|
|
# undef getcwd
|
|
#endif
|
|
|
|
// sanity check
|
|
#ifdef new
|
|
#error "nommgr.h - something is wrong, new is still defined"
|
|
#endif
|