/* * Treebird - Lightweight frontend for Pleroma * * Licensed under the BSD 3-Clause License */ /* Everything seen here is info for the super curious, and does not really have anything to do with Treebird :-) */ #ifndef TREEBIRD_MEMSTUF_H #define TREEBIRD_MEMSTUF_H #include extern int tb_memory_allocated_est; extern int tb_memory_allocated; extern int tb_memory_free; extern int tb_memory_times_allocated; extern int tb_memory_times_freed; #if 0 #define tb_malloc malloc #define tb_calloc calloc #define tb_realloc realloc #define tb_free free #endif // Nothing void* tb_malloc(size_t size); void* tb_calloc(size_t nmemb, size_t size); void* tb_realloc(void* ptr, size_t size); void tb_free(void* ptr); #ifdef __GLIBC__ void propagate_memory(); #else #define propagate_memory() ; #endif #endif // TREEBIRD_MEMSTUF_H