| 73 | } |
| 74 | |
| 75 | extern "C" auto calloc(size_t num, size_t size) -> void* { |
| 76 | if (allocator) { |
| 77 | return allocator->calloc(num, size); |
| 78 | } |
| 79 | return nullptr; |
| 80 | } |
| 81 | |
| 82 | extern "C" auto realloc(void* ptr, size_t new_size) -> void* { |
| 83 | if (allocator) { |
nothing calls this directly
no outgoing calls
no test coverage detected