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

Function logFree

Engine/source/platform/platformMemory.cpp:1114–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112
1113#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
1114static void logFree(const AllocatedHeader* hdr)
1115{
1116 FileStream fws;
1117 fws.open(gLogFilename, Torque::FS::File::ReadWrite);
1118 fws.setPosition(fws.getStreamSize());
1119
1120 char buffer[1024];
1121 dSprintf(buffer, 1023, "free: %s %d %d\r\n",
1122 hdr->fileName != NULL ? hdr->fileName : "Undetermined",
1123 hdr->line, hdr->allocNum);
1124 fws.write(dStrlen(buffer), buffer);
1125 fws.close();
1126}
1127#endif // !defined(TORQUE_DISABLE_MEMORY_MANAGER)
1128
1129#endif

Callers 1

freeFunction · 0.85

Calls 7

dSprintfFunction · 0.85
openMethod · 0.65
closeMethod · 0.65
dStrlenFunction · 0.50
setPositionMethod · 0.45
getStreamSizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected