1 #ifndef MEMORY_CHECKER_CLASS
2 #define MEMORY_CHECKER_CLASS
20 #ifdef ENABLE_MEMORY_HOOK
26 class allocation_memories;
59 void disable() { _enabled =
false; }
61 void enable() { _enabled =
true; }
63 bool enabled()
const {
return _enabled; }
65 void *provide_memory(
size_t size,
char *file,
int line);
73 int release_memory(
void *ptr);
80 char *text_form(
bool show_outstanding);
87 allocation_memories *_mems;
94 #define program_wide_memories()
Contains definitions that control how libraries and programs are built.
Constants and objects used throughout HOOPLE.
#define program_wide_memories()