| 177 | extern "C" { |
| 178 | |
| 179 | void* malloc(size_t size) { |
| 180 | #ifdef _WIN32 |
| 181 | init_real_allocators(); |
| 182 | #endif |
| 183 | void* ptr = real_malloc(size); |
| 184 | if (g_tracking_enabled) { |
| 185 | g_stats.on_malloc(ptr, size); |
| 186 | } |
| 187 | return ptr; |
| 188 | } |
| 189 | |
| 190 | void* calloc(size_t n, size_t size) { |
| 191 | #ifdef _WIN32 |
no test coverage detected