src/saveload.h
branchcustombridgeheads
changeset 5650 aefc131bf5ce
parent 5643 3778051e8095
child 5922 510e1bbc5992
equal deleted inserted replaced
5649:55c8267c933f 5650:aefc131bf5ce
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #ifndef SAVELOAD_H
     3 #ifndef SAVELOAD_H
     4 #define SAVELOAD_H
     4 #define SAVELOAD_H
       
     5 
       
     6 #ifdef SIZE_MAX
       
     7 #undef SIZE_MAX
       
     8 #endif
       
     9 
       
    10 #define SIZE_MAX ((size_t)-1)
     5 
    11 
     6 typedef enum SaveOrLoadResult {
    12 typedef enum SaveOrLoadResult {
     7 	SL_OK     = 0, // completed successfully
    13 	SL_OK     = 0, // completed successfully
     8 	SL_ERROR  = 1, // error that was caught before internal structures were modified
    14 	SL_ERROR  = 1, // error that was caught before internal structures were modified
     9 	SL_REINIT = 2, // error that was caught in the middle of updating game state, need to clear it. (can only happen during load)
    15 	SL_REINIT = 2, // error that was caught in the middle of updating game state, need to clear it. (can only happen during load)