MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setGuard

Function setGuard

Engine/source/platform/platformMemory.cpp:302–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
302static void setGuard(Header *header, bool alloc)
303{
304 U32 guardVal = alloc ? AllocatedGuard : FreeGuard;
305 for(U32 i = 0; i < 4; i++)
306 header->preguard[i] = header->postguard[i] = guardVal;
307}
308#endif // !defined(TORQUE_DISABLE_MEMORY_MANAGER)
309
310#endif // TORQUE_DEBUG_GUARD

Callers 4

treeInsertFunction · 0.85
treeRemoveFunction · 0.85
allocMemPageFunction · 0.85
checkUnusedAllocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected