#ifndef INC_LIB_MEM_GALLOC_H #define INC_LIB_MEM_GALLOC_H #include #define g_malloc(size) _g_malloc(size, __FILE__, __LINE__) #define g_calloc(n_memb, size) _g_calloc(n_memb, size, __FILE__, __LINE__) #define g_realloc(ptr, size) _g_realloc(ptr, size, __FILE__, __LINE__) #define g_free(ptr) _g_free(ptr, __FILE__, __LINE__) void *_g_malloc(size_t size, char* file, unsigned int line); void *_g_calloc(size_t n_memb, size_t size, char* file, unsigned int line); void *_g_realloc(void *ptr, size_t size, char* file, unsigned int line); void _g_free(void *ptr, char* file, unsigned int line); ssize_t g_outstanding_allocations(); #endif