| 286 | #ifdef TORQUE_DEBUG_GUARD |
| 287 | |
| 288 | static bool checkGuard(Header *header, bool alloc) |
| 289 | { |
| 290 | U32 guardVal = alloc ? AllocatedGuard : FreeGuard; |
| 291 | for(U32 i = 0; i < 4; i++) |
| 292 | if(header->preguard[i] != guardVal || header->postguard[i] != guardVal) |
| 293 | { |
| 294 | Platform::debugBreak(); |
| 295 | return false; |
| 296 | } |
| 297 | |
| 298 | return true; |
| 299 | } |
| 300 | |
| 301 | #if !defined(TORQUE_DISABLE_MEMORY_MANAGER) |
| 302 | static void setGuard(Header *header, bool alloc) |
no outgoing calls
no test coverage detected