/* * [Warning!] This file is auto-generated by pika compiler. * Do not edit it manually. * The source code is *.pyi file. * More details: * English Doc: * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html * Chinese Doc: * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html */ #include "PikaMain.h" #include #include PikaObj *__pikaMain; PikaObj *pikaScriptInit(void){ __platform_printf("======[pikascript packages installed]======\r\n"); pks_printVersion(); __platform_printf("PikaStdLib==v1.11.8 __platform_printf("pika_lvgl==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" "print('hello PikaScript!')\n" "mem = PikaStdLib.MemChecker()\n" "print('mem used max:')\n" "mem.max()\n" "\n"); #else obj_runModule(__pikaMain, "main"); #endif return __pikaMain; }