mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
20 lines
586 B
C
20 lines
586 B
C
|
/* ******************************** */
|
||
|
/* Warning! Don't modify this file! */
|
||
|
/* ******************************** */
|
||
|
#include "PikaMain.h"
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
PikaObj * pikaScriptInit(){
|
||
|
PikaObj * pikaMain = newRootObj("pikaMain", New_PikaMain);
|
||
|
obj_run(pikaMain, "print('hello world')");
|
||
|
obj_run(pikaMain, "mem = PikaStdLib.MemChecker()");
|
||
|
obj_run(pikaMain, "print('mem.max :')");
|
||
|
obj_run(pikaMain, "mem.max()");
|
||
|
obj_run(pikaMain, "print('mem.now :')");
|
||
|
obj_run(pikaMain, "mem.now()");
|
||
|
obj_run(pikaMain, "");
|
||
|
return pikaMain;
|
||
|
}
|
||
|
|