李昂 5349a56656 !26 run the __init__ when init the meta obj
* run __init__ when init the meta_obj
* clean dead code
2022-06-15 06:20:34 +00:00

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);
}