pikapython/package/Arm2D/Arm2D_ElementList.c

16 lines
412 B
C
Raw Normal View History

2021-10-05 09:49:52 +08:00
#include "Arm2D_common.h"
2021-11-03 20:11:31 +08:00
#include "PikaVM.h"
2021-10-05 09:49:52 +08:00
2021-11-03 20:11:31 +08:00
int32_t __foreach_ElementList_update(Arg* elem, Args* buffs) {
ArgType type = arg_getType(elem);
if (TYPE_OBJECT == type) {
2021-11-03 20:11:31 +08:00
PikaObj* elemObj = arg_getPtr(elem);
pikaVM_runAsm(elemObj, "0 RUN update\n");
2021-10-05 09:49:52 +08:00
}
return 0;
}
2021-11-03 20:11:31 +08:00
void Arm2D_ElementList_update(PikaObj* self) {
args_foreach(self->list, __foreach_ElementList_update, NULL);
2021-11-02 22:58:30 +08:00
}