mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
26 lines
648 B
C
26 lines
648 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,
|
|
"\n"
|
|
"mem = PikaStdLib.MemChecker()\n"
|
|
"\n"
|
|
"\n"
|
|
"for i in range(1, 100):\n"
|
|
" print(i)\n"
|
|
"\n"
|
|
"print('mem used max:')\n"
|
|
"mem.max()\n"
|
|
"print('mem used now:')\n"
|
|
"mem.now()\n"
|
|
"\n");
|
|
return pikaMain;
|
|
}
|
|
|