Functions to 'handle' memory allocation errors. More...
#include "../stdafx.h"Go to the source code of this file.
Functions | |
| void NORETURN | MallocError (size_t size) |
| Function to exit with an error message after malloc() or calloc() have failed. | |
| void NORETURN | ReallocError (size_t size) |
| Function to exit with an error message after realloc() have failed. | |
Functions to 'handle' memory allocation errors.
Definition in file alloc_func.cpp.
| void NORETURN 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 18 of file alloc_func.cpp.
References error().
Referenced by CallocT(), CheckAllocationConstraints(), and MallocT().
| void NORETURN 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 27 of file alloc_func.cpp.
References error().
Referenced by ReallocT().
1.7.1