2022-06-15 06:20:34 +00:00
|
|
|
#include "GTestTask.h"
|
2022-01-24 19:08:33 +08:00
|
|
|
#include "GTestTask_Task.h"
|
|
|
|
|
2022-06-04 16:28:36 +08:00
|
|
|
static volatile uint64_t tick_ms = 0;
|
2022-01-24 19:08:33 +08:00
|
|
|
void GTestTask_Task_platformGetTick(PikaObj* self) {
|
2022-01-24 19:59:01 +08:00
|
|
|
tick_ms += 50;
|
2022-01-24 19:08:33 +08:00
|
|
|
obj_setInt(self, "tick", tick_ms);
|
|
|
|
}
|
2022-06-15 06:20:34 +00:00
|
|
|
|
|
|
|
void GTestTask___init__(PikaObj* self) {
|
2022-06-15 14:49:17 +08:00
|
|
|
if (!obj_isArgExist(self, "testval")) {
|
|
|
|
obj_setInt(self, "testval", 8848);
|
|
|
|
} else {
|
|
|
|
obj_setInt(self, "testval", obj_getInt(self, "testval") + 1);
|
|
|
|
}
|
2022-06-15 06:20:34 +00:00
|
|
|
}
|
2022-07-06 10:54:04 +08:00
|
|
|
|
|
|
|
char* GTestTask_Task_returnNullString(PikaObj* self) {
|
|
|
|
return NULL;
|
|
|
|
}
|