mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
SW: Replace void* with decltype(o) in TRAVERSE define.
Patch from Striker. git-svn-id: https://svn.eduke32.com/eduke32@7507 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
78df29ce00
commit
a60905524c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ typedef
|
|||
((LIST) nodep)->Next->Prev = ((LIST) nodep)->Prev)
|
||||
|
||||
|
||||
#define TRAVERSE(l, o, n) ASSERT(((LIST)l)->Next && ((LIST)l)->Prev); for (o = (void*)(((LIST)l)->Next); \
|
||||
#define TRAVERSE(l, o, n) ASSERT(((LIST)l)->Next && ((LIST)l)->Prev); for (o = (decltype(o))(((LIST)l)->Next); \
|
||||
n = o->Next, (LIST) o != (LIST) l; \
|
||||
o = n)
|
||||
|
||||
|
|
Loading…
Reference in a new issue