equal
deleted
inserted
replaced
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) |