(svn r10762) -Codechange: Change enum StringIDEnum { to static const StringID = for

each STR_ entry. This avoids the need for a cast to StringID in some 
places and thus better type-safety.
This commit is contained in:
peter1138
2007-08-03 09:08:49 +00:00
parent f95df6bb61
commit 23a46a301e
5 changed files with 13 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ struct PalSpriteID {
typedef uint16 EngineID;
typedef uint16 UnitID;
typedef uint16 StringID;
#define INVALID_STRING_ID 0xFFFF
static const StringID INVALID_STRING_ID = 0xFFFF;
typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp)