forked from xuos/xiuos
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* [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-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
|
|
* Chinese Doc:
|
|
* http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
|
|
*/
|
|
|
|
#include "PikaMain.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
volatile PikaObj *__pikaMain;
|
|
PikaObj *pikaPythonInit(void){
|
|
pika_platform_printf("======[pikapython packages installed]======\r\n");
|
|
pika_printVersion();
|
|
pika_platform_printf("PikaStdLib===v1.13.4\r\n");
|
|
pika_platform_printf("===========================================\r\n");
|
|
PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain);
|
|
__pikaMain = pikaMain;
|
|
extern unsigned char pikaModules_py_a[];
|
|
obj_linkLibrary(pikaMain, pikaModules_py_a);
|
|
#if PIKA_INIT_STRING_ENABLE
|
|
obj_run(pikaMain,
|
|
"print('hello PikaPython!')\n"
|
|
"\n");
|
|
#else
|
|
obj_runModule((PikaObj*)pikaMain, "main");
|
|
#endif
|
|
return pikaMain;
|
|
}
|
|
|