| 338 | } |
| 339 | |
| 340 | void* XREALLOC(void* ptr, size_t sz, void* heap) |
| 341 | { |
| 342 | void* ret = ::operator new(sz); |
| 343 | |
| 344 | if (ret && ptr) |
| 345 | memcpy(ret, ptr, sz); |
| 346 | |
| 347 | if (ret) |
| 348 | ::operator delete(ptr); |
| 349 | return ret; |
| 350 | } |
| 351 | |
| 352 | |
| 353 | void XFREE(void* ptr, void* heap) |
nothing calls this directly
no test coverage detected