changeset 1837 | ebd6a1395d03 |
parent 1575 | a566a645401f |
child 1977 | 4392ae3d8e31 |
--- a/signs.h Tue May 17 19:08:27 2005 +0000 +++ b/signs.h Tue May 17 19:36:36 2005 +0000 @@ -41,6 +41,11 @@ return _sign_pool.total_items; } +static inline bool IsSignIndex(uint index) +{ + return index < GetSignPoolSize(); +} + #define FOR_ALL_SIGNS_FROM(ss, start) for (ss = GetSign(start); ss != NULL; ss = (ss->index + 1 < GetSignPoolSize()) ? GetSign(ss->index + 1) : NULL) #define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)