| 454 | } |
| 455 | |
| 456 | virtual void Free(void* mem) |
| 457 | { |
| 458 | if (!mem) |
| 459 | { |
| 460 | return; |
| 461 | } |
| 462 | --_currentAllocs; |
| 463 | Item* item = static_cast<Item*>(mem); |
| 464 | #ifdef TINYXML2_DEBUG |
| 465 | memset(item, 0xfe, sizeof(*item)); |
| 466 | #endif |
| 467 | item->next = _root; |
| 468 | _root = item; |
| 469 | } |
| 470 | void Trace(const char* name) |
| 471 | { |
| 472 | printf("Mempool %s watermark=%d [%dk] current=%d size=%d nAlloc=%d blocks=%d\n", |
no outgoing calls
no test coverage detected