@@ -42,25 +42,25 @@ static inline bool IsDefaultGroupID(Grou
*/
static inline bool IsAllGroupID(GroupID id_g)
{
return id_g == ALL_GROUP;
}
#define FOR_ALL_GROUPS_FROM(g, start) for (g = Group::Get(start); g != NULL; g = (g->index + 1U < Group::GetPoolSize()) ? Group::Get(g->index + 1) : NULL) if (g->IsValid())
#define FOR_ALL_GROUPS(g) FOR_ALL_GROUPS_FROM(g, 0)
/**
* Get the current size of the GroupPool
static inline uint GetGroupArraySize(void)
static inline uint GetGroupArraySize()
const Group *g;
uint num = 0;
FOR_ALL_GROUPS(g) num++;
return num;
* Get the number of engines with EngineID id_e in the group with GroupID
* id_g