mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
5349a56656
* run __init__ when init the meta_obj * clean dead code
13 lines
286 B
C
13 lines
286 B
C
#include "GTestTask.h"
|
|
#include "GTestTask_Task.h"
|
|
|
|
static volatile uint64_t tick_ms = 0;
|
|
void GTestTask_Task_platformGetTick(PikaObj* self) {
|
|
tick_ms += 50;
|
|
obj_setInt(self, "tick", tick_ms);
|
|
}
|
|
|
|
void GTestTask___init__(PikaObj* self) {
|
|
obj_setInt(self, "testval", 8848);
|
|
}
|