INNER CODE UNIT · C++
MaxRam
TheAssemblyArmada/Vanilla-Conquer · common/alloc.cpp:54
size_t MaxRam = 0; // Record of total allocated at worst case.
static size_t TotalRam = 0;
static unsigned int Memory_Calls = 0;
void (*Memory_Error)(void) = NULL;
void (*Memory_Error_Exit)(char* string) = NULL;
/***************************************************************************
* Alloc -- Allocates system RAM. *
* *
* This is the basic RAM allocation function. It is used for all *
* memory allocations needed by the system or the main program. *
* *
* INPUT: bytes_to_alloc -- LONG value of the number of bytes to alloc. *
* *
* flags -- Memory allocation control flags. *
* MEM_NORMAL: No special flags. *
* MEM_CLEAR: Zero out memory block. *