MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / memoryError

Function memoryError

Engine/source/platform/platformMemory.cpp:312–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310#endif // TORQUE_DEBUG_GUARD
311
312static void memoryError()
313{
314 // free all the pages
315 PageRecord *walk = gPageList;
316 while(walk) {
317 PageRecord *prev = walk->prevPage;
318 dRealFree(walk);
319 walk = prev;
320 }
321 AssertFatal(false, "Error allocating memory! Shutting down.");
322 Platform::AlertOK("Torque Memory Error", "Error allocating memory. Shutting down.\n");
323 Platform::forceShutdown(-1);
324}
325
326PageRecord *allocPage(dsize_t pageSize)
327{

Callers 1

allocPageFunction · 0.85

Calls 1

dRealFreeFunction · 0.50

Tested by

no test coverage detected