Decoded: OpenTTD (2003) v1.8 (2018) Source file: alloc_func.cpp Line-by-line code walkthrough by MaiZure alloc_func.cpp defines memory allocation error handlers Original code: https://github.com/MaiZure/OpenTTD-1.8/blob/master/src/core/alloc_func.cpp 1 COMMENT (*) 2 BLANK (-) 3 * 4 * 5 * 6 * 7 * 8 * 9 - 10 * 11 - 12 Include OpenTTD platform-specific definitions header 13 - 14 Include OpenTTD safeguard header 15 - 16 * 17 * 18 * 19 * 20 Defines MallocError with one argument: Attempted allocation size 21 BLOCK START - MallocError, 22 Fails out of the process with an error message 23 BLOCK END - MallocError 24 - 25 * 26 * 27 * 28 * 29 Defines ReallocError with argument for attempted allocation size 30 BLOCK START - ReallocError, 31 Fails out of the process with an error message 32 BLOCK END - ReallocError