pikapython/package/Arm2D/Arm2D_ElementList.c
2022-03-02 22:05:54 +08:00

16 lines
416 B
C

#include "Arm2D_common.h"
#include "PikaVM.h"
int32_t __foreach_ElementList_update(Arg* elem, Args* buffs) {
ArgType type = arg_getType(elem);
if (ARG_TYPE_OBJECT == type) {
PikaObj* elemObj = arg_getPtr(elem);
pikaVM_runAsm(elemObj, "0 RUN update\n");
}
return 0;
}
void Arm2D_ElementList_update(PikaObj* self) {
args_foreach(self->list, __foreach_ElementList_update, NULL);
}