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) \
|
#define DECL_VERIFIER(name, type, field) \
|
||||||
static type* Verify##name(type *list, ALuint id) \
|
static type* Verify##name(type *list, ALuint id) \
|
||||||
{ \
|
{ \
|
||||||
while(list) \
|
while(list && list->field != id) \
|
||||||
{ \
|
|
||||||
if(list->field == id) \
|
|
||||||
break; \
|
|
||||||
list = list->next; \
|
list = list->next; \
|
||||||
} \
|
|
||||||
return list; \
|
return list; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user