Simplifiy verification loops
This commit is contained in:
parent
186e0f3b04
commit
0fee20a415
@ -382,12 +382,8 @@ ALCcontext* ALCAPIENTRY alcGetThreadContext(void);
|
||||
#define DECL_VERIFIER(name, type, field) \
|
||||
static type* Verify##name(type *list, ALuint id) \
|
||||
{ \
|
||||
while(list) \
|
||||
{ \
|
||||
if(list->field == id) \
|
||||
break; \
|
||||
while(list && list->field != id) \
|
||||
list = list->next; \
|
||||
} \
|
||||
return list; \
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user