mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
winpr: collections: add ArrayList_ForEach
This commit is contained in:
committed by
akallabeth
parent
29dee84a2b
commit
1543664343
@@ -152,6 +152,11 @@ extern "C"
|
||||
|
||||
#define ArrayList_Object(_arrayList) (&_arrayList->object)
|
||||
|
||||
#define ArrayList_ForEach(_lst, _type, index, value) \
|
||||
for (index = 0; \
|
||||
index < ArrayList_Count(_lst) && (value = (_type)ArrayList_GetItem(_lst, index)); \
|
||||
index++)
|
||||
|
||||
WINPR_API void ArrayList_Clear(wArrayList* arrayList);
|
||||
WINPR_API BOOL ArrayList_Contains(wArrayList* arrayList, void* obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user