| 188 | } |
| 189 | |
| 190 | void* calloc(size_t n, size_t size) { |
| 191 | #ifdef _WIN32 |
| 192 | init_real_allocators(); |
| 193 | #endif |
| 194 | void* ptr = real_calloc(n, size); |
| 195 | if (g_tracking_enabled) { |
| 196 | g_stats.on_malloc(ptr, n * size); |
| 197 | } |
| 198 | return ptr; |
| 199 | } |
| 200 | |
| 201 | void* realloc(void* ptr, size_t size) { |
| 202 | #ifdef _WIN32 |
nothing calls this directly
no test coverage detected