Simplifiy verification loops

This commit is contained in:
Chris Robinson 2010-03-17 20:16:02 -07:00
parent 186e0f3b04
commit 0fee20a415

View File

@ -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; \
} }