26 lines
648 B
C
Raw Normal View History

2021-12-30 21:48:11 +08:00
/* ******************************** */
/* 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"
2021-12-30 22:09:03 +08:00
"for i in range(1, 100):\n"
2021-12-30 21:48:11 +08:00
" print(i)\n"
"\n"
"print('mem used max:')\n"
"mem.max()\n"
"print('mem used now:')\n"
"mem.now()\n"
"\n");
return pikaMain;
}