This commit is contained in:
lyon 2022-05-11 16:17:28 +08:00
parent 9c49aa38fa
commit 2714c6548f

View File

@ -463,8 +463,8 @@ int32_t args_setPtrWithType(Args* self,
} }
int32_t args_foreach(Args* self, int32_t args_foreach(Args* self,
int32_t (*eachHandle)(Arg* argEach, Args* handleArgs), int32_t (*eachHandle)(Arg* argEach, Args* context),
Args* handleArgs) { Args* context) {
if (NULL == self->firstNode) { if (NULL == self->firstNode) {
return 0; return 0;
} }
@ -475,7 +475,7 @@ int32_t args_foreach(Args* self,
continue; continue;
} }
LinkNode* nextNode = content_getNext(nodeNow); LinkNode* nextNode = content_getNext(nodeNow);
eachHandle(argNow, handleArgs); eachHandle(argNow, context);
if (NULL == nextNode) { if (NULL == nextNode) {
break; break;