mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
16 lines
424 B
C
16 lines
424 B
C
#include "Arm2D_common.h"
|
|
#include "PikaVM.h"
|
|
|
|
int32_t __foreach_ElementList_update(Arg* elem, Args* buffs) {
|
|
ArgType type = arg_getType(elem);
|
|
if (TYPE_OBJECT == type) {
|
|
PikaObj* elemObj = arg_getPtr(elem);
|
|
obj_deinit(pikaVM_runAsm(elemObj, "0 RUN update\n"));
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
void Arm2D_ElementList_update(PikaObj* self) {
|
|
args_foreach(self->list, __foreach_ElementList_update, NULL);
|
|
}
|