Decoded: OpenTTD (2003) v1.8 (2018) Source file: endian_type.hpp Line-by-line code walkthrough by MaiZure endian_type.hpp defines macros based on system architecture Original code: https://github.com/MaiZure/OpenTTD-1.8/blob/master/src/core/endian_type.hpp 1 COMMENT (*) 2 BLANK (-) 3 * 4 * 5 * 6 * 7 * 8 * 9 - 10 * 11 - 12 Header guard 13 Header guard 14 - 15 If this this an ARM or Alpha architecture... 16 * 17 We need aliged access 18 Otherwise... 19 * 20 No alignmnet necessary 21 End check for architecture alignment requirements 22 - 23 * 24 Defines macro for little endian 25 * 26 Defines macro for big endian 27 - 28 * 29 If this is windows or OS2.. 30 then it's a little endian machine 31 Otherwise if we're not in testing and... 32 * 33 If we're running a host then.. 34 Include the host endian file 35 Otherwise... 36 Include the target endian file 37 End check for host/target 38 End check for system type 39 - 40 Header guard end