File diff r14125:3ee08ca0423e → r14126:f23988064e74
src/saveload/oldloader.h
Show inline comments
 
@@ -121,13 +121,13 @@ static inline uint32 ReadUint32(Loadgame
 
/* Help:
 
 *  - OCL_SVAR: load 'type' to offset 'offset' in a struct of type 'base', which must also
 
 *       be given via base in LoadChunk() as real pointer
 
 *  - OCL_VAR: load 'type' to a global var
 
 *  - OCL_END: every struct must end with this
 
 *  - OCL_NULL: read 'amount' of bytes and send them to /dev/null or something
 
 *  - OCL_CHUNK: load an other proc to load a part of the savegame, 'amount' times
 
 *  - OCL_CHUNK: load another proc to load a part of the savegame, 'amount' times
 
 *  - OCL_ASSERT: to check if we are really at the place we expect to be.. because old savegames are too binary to be sure ;)
 
 */
 
#define OCL_SVAR(type, base, offset)         { type,                 1,    NULL, (uint)cpp_offsetof(base, offset), NULL }
 
#define OCL_VAR(type, amount, pointer)       { type,            amount, pointer,    0,                             NULL }
 
#define OCL_END()                            { OC_END,               0,    NULL,    0,                             NULL }
 
#define OCL_CNULL(type, amount)              { OC_NULL | type,  amount,    NULL,    0,                             NULL }