From 604e56adc2092d31c02f16b8412d550f7986557c Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 27 Jun 2010 09:05:10 +0000 Subject: (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. --- src/saveload/saveload.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/saveload/saveload.h') diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h index b2a904106..d3cb32dfc 100644 --- a/src/saveload/saveload.h +++ b/src/saveload/saveload.h @@ -20,6 +20,7 @@ #define SIZE_MAX ((size_t)-1) +/** Save or load result codes. */ enum SaveOrLoadResult { SL_OK = 0, ///< completed successfully SL_ERROR = 1, ///< error that was caught before internal structures were modified @@ -36,6 +37,7 @@ enum SaveOrLoadMode { SL_LOAD_CHECK = 5, }; +/** Types of save games. */ enum SavegameType { SGT_TTD, ///< TTD savegame (can be detected incorrectly) SGT_TTDP1, ///< TTDP savegame ( -//- ) (data at NW border) @@ -276,19 +278,23 @@ static inline bool SlIsObjectCurrentlyValid(uint16 version_from, uint16 version_ return true; } -/* Get the NumberType of a setting. This describes the integer type +/** + * Get the NumberType of a setting. This describes the integer type * as it is represented in memory * @param type VarType holding information about the variable-type - * @return return the SLE_VAR_* part of a variable-type description */ + * @return return the SLE_VAR_* part of a variable-type description + */ static inline VarType GetVarMemType(VarType type) { return type & 0xF0; // GB(type, 4, 4) << 4; } -/* Get the FileType of a setting. This describes the integer type +/** + * Get the FileType of a setting. This describes the integer type * as it is represented in a savegame/file * @param type VarType holding information about the variable-type - * @param return the SLE_FILE_* part of a variable-type description */ + * @param return the SLE_FILE_* part of a variable-type description + */ static inline VarType GetVarFileType(VarType type) { return type & 0xF; // GB(type, 0, 4); -- cgit v1.2.3-70-g09d2