2022-05-30 16:04:12 +08:00

27 lines
817 B
C

/* ******************************** */
/* Warning! Don't modify this file! */
/* ******************************** */
#include "PikaMain.h"
#include <stdio.h>
#include <stdlib.h>
PikaObj *__pikaMain;
PikaObj *pikaScriptInit(void){
__platform_printf("======[pikascript packages installed]======\r\n");
__platform_printf("PikaStdLib==latest\r\n");
__platform_printf("pikascript-core==latest\r\n");
__platform_printf("===========================================\r\n");
__pikaMain = newRootObj("pikaMain", New_PikaMain);
extern unsigned char pikaModules_py_a[];
obj_linkLibrary(__pikaMain, pikaModules_py_a);
#if PIKA_INIT_STRING_ENABLE
obj_run(__pikaMain,
"import PikaStdLib\n"
"\n");
#else
obj_runModule(__pikaMain, "main");
#endif
return __pikaMain;
}