OpenTTD Source
20241121-master-g67a0fccfad
|
Functions to 'handle' memory allocation errors. More...
Go to the source code of this file.
Functions | |
void | MallocError (size_t size) |
Function to exit with an error message after malloc() or calloc() have failed. More... | |
void | ReallocError (size_t size) |
Function to exit with an error message after realloc() have failed. More... | |
Functions to 'handle' memory allocation errors.
Definition in file alloc_func.cpp.
void MallocError | ( | size_t | size | ) |
Function to exit with an error message after malloc() or calloc() have failed.
size | number of bytes we tried to allocate |
Definition at line 20 of file alloc_func.cpp.
Referenced by ScriptAllocator::CheckAllocation(), and CheckAllocationConstraints().
void ReallocError | ( | size_t | size | ) |
Function to exit with an error message after realloc() have failed.
size | number of bytes we tried to allocate |
Definition at line 29 of file alloc_func.cpp.