39 #include <sys/types.h>
43 #if __cplusplus < 201103L
44 #define GRASS_MM_USE_EXCEPTION_SPECIFIER
47 #define MM_REGISTER_VERSION 2
50 #define MM_DEFAULT_MM_SIZE (40 << 20)
128 #ifdef GRASS_MM_USE_EXCEPTION_SPECIFIER
129 void *
operator new(size_t)
throw(std::bad_alloc);
130 void *
operator new[](size_t)
throw(std::bad_alloc);
131 void operator delete(
void *)
throw();
132 void operator delete[](
void *)
throw();
134 void *
operator new(size_t);
135 void *
operator new[](size_t);
136 void operator delete(
void *) noexcept;
137 void operator delete[](
void *) noexcept;
148 static unsigned int count;
MM_err register_allocation(size_t sz)
void enforce_memory_limit()
void ignore_memory_limit()
size_t memory_available()
MM_err register_deallocation(size_t sz)
MM_err set_memory_limit(size_t sz)
@ MM_STREAM_USAGE_OVERHEAD
@ MM_STREAM_USAGE_MAXIMUM
@ MM_STREAM_USAGE_CURRENT
@ MM_ERROR_INSUFFICIENT_SPACE
@ MM_ERROR_EXCESSIVE_ALLOCATION
@ MM_ABORT_ON_MEMORY_EXCEEDED
@ MM_WARN_ON_MEMORY_EXCEEDED
@ MM_IGNORE_MEMORY_EXCEEDED