update PikaStdLib

This commit is contained in:
lyon 2023-01-19 17:47:34 +08:00
parent 59765c4ee2
commit 83ebe9d398
2 changed files with 8 additions and 0 deletions

View File

@ -119,6 +119,10 @@ class SysObj:
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def help(name: str): ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def reboot(): ...
@PIKA_C_MACRO_IF("0")
class RangeObj:

View File

@ -682,3 +682,7 @@ void PikaStdLib_SysObj_help(PikaObj* self, char* name) {
obj_printModules((PikaObj*)__pikaMain);
}
}
void PikaStdLib_SysObj_reboot(PikaObj *self){
pika_platform_reboot();
}