| 1675 | } |
| 1676 | |
| 1677 | void getMemoryInfo( void* ptr, Info& info ) |
| 1678 | { |
| 1679 | #ifndef TORQUE_DISABLE_MEMORY_MANAGER |
| 1680 | |
| 1681 | AllocatedHeader* header = ( ( AllocatedHeader* ) ptr ) - 1; |
| 1682 | |
| 1683 | info.mAllocSize = header->size; |
| 1684 | #ifdef TORQUE_DEBUG_GUARD |
| 1685 | info.mAllocNumber = header->allocNum; |
| 1686 | info.mLineNumber = header->line; |
| 1687 | info.mFileName = header->fileName; |
| 1688 | #endif |
| 1689 | info.mIsArray = header->flags & Array; |
| 1690 | info.mIsGlobal = header->flags & GlobalFlag; |
| 1691 | info.mIsStatic = header->flags & StaticFlag; |
| 1692 | |
| 1693 | #endif |
| 1694 | } |
| 1695 | |
| 1696 | void setBreakAlloc(U32 breakAlloc) |
| 1697 | { |