Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
f7f9b68b
Commit
f7f9b68b
authored
5 years ago
by
Nev3r
Browse files
Options
Downloads
Patches
Plain Diff
Introduce tagged element iteration macros.
parent
07b4d0ee
Loading
Loading
1 merge request
!1097
UDMF: Multitag support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/taglist.h
+21
-0
21 additions, 0 deletions
src/taglist.h
with
21 additions
and
0 deletions
src/taglist.h
+
21
−
0
View file @
f7f9b68b
...
...
@@ -28,3 +28,24 @@ void Taglist_AddToSectors (const size_t tag, const size_t itemid);
void
Taglist_AddToLines
(
const
size_t
tag
,
const
size_t
itemid
);
void
Taglist_AddToMapthings
(
const
size_t
tag
,
const
size_t
itemid
);
#endif //__R_TAGLIST__
#define Tag_IterateSectors(tag, sc)\
size_t kk;\
if(tags_sectors[tag])\
for(kk = 0, sc = tags_sectors[tag]->elements[0];\
kk < tags_sectors[tag]->count;\
sc = tags_sectors[tag]->elements[++kk])
#define Tag_IterateLines(tag, li)\
size_t kk;\
if(tags_lines[tag])\
for(kk = 0, li = tags_lines[tag]->elements[0];\
kk < tags_lines[tag]->count;\
li = tags_lines[tag]->elements[++kk])
#define Tag_IterateMapthings(tag, mt)\
size_t kk;\
if(tags_mapthings[tag])\
for(kk = 0, mt = tags_mapthings[tag]->elements[0];\
kk < tags_mapthings[tag]->count;\
mt = tags_mapthings[tag]->elements[++kk])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment