mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Rename the macros, reshape them slightly to avoid mixed declarations, and add a finalizer.
This commit is contained in:
parent
befdd2b1b4
commit
0bb240e084
1 changed files with 8 additions and 6 deletions
|
|
@ -29,23 +29,25 @@ void Taglist_AddToLines (const size_t tag, const size_t itemid);
|
||||||
void Taglist_AddToMapthings (const size_t tag, const size_t itemid);
|
void Taglist_AddToMapthings (const size_t tag, const size_t itemid);
|
||||||
#endif //__R_TAGLIST__
|
#endif //__R_TAGLIST__
|
||||||
|
|
||||||
#define Tag_IterateSectors(tag, sc)\
|
#define TAG_ITER_SECTORS(tag, sc)\
|
||||||
size_t kk;\
|
|
||||||
if(tags_sectors[tag])\
|
if(tags_sectors[tag])\
|
||||||
|
{ size_t kk;\
|
||||||
for(kk = 0, sc = tags_sectors[tag]->elements[0];\
|
for(kk = 0, sc = tags_sectors[tag]->elements[0];\
|
||||||
kk < tags_sectors[tag]->count;\
|
kk < tags_sectors[tag]->count;\
|
||||||
sc = tags_sectors[tag]->elements[++kk])
|
sc = tags_sectors[tag]->elements[++kk])
|
||||||
|
|
||||||
#define Tag_IterateLines(tag, li)\
|
#define TAG_ITER_LINES(tag, li)\
|
||||||
size_t kk;\
|
|
||||||
if(tags_lines[tag])\
|
if(tags_lines[tag])\
|
||||||
|
{ size_t kk;\
|
||||||
for(kk = 0, li = tags_lines[tag]->elements[0];\
|
for(kk = 0, li = tags_lines[tag]->elements[0];\
|
||||||
kk < tags_lines[tag]->count;\
|
kk < tags_lines[tag]->count;\
|
||||||
li = tags_lines[tag]->elements[++kk])
|
li = tags_lines[tag]->elements[++kk])
|
||||||
|
|
||||||
#define Tag_IterateMapthings(tag, mt)\
|
#define TAG_ITER_THINGS(tag, mt)\
|
||||||
size_t kk;\
|
|
||||||
if(tags_mapthings[tag])\
|
if(tags_mapthings[tag])\
|
||||||
|
{ size_t kk;\
|
||||||
for(kk = 0, mt = tags_mapthings[tag]->elements[0];\
|
for(kk = 0, mt = tags_mapthings[tag]->elements[0];\
|
||||||
kk < tags_mapthings[tag]->count;\
|
kk < tags_mapthings[tag]->count;\
|
||||||
mt = tags_mapthings[tag]->elements[++kk])
|
mt = tags_mapthings[tag]->elements[++kk])
|
||||||
|
|
||||||
|
#define TAG_ITER_END }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue