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