mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
sysobj not include mem
This commit is contained in:
parent
bcb43e5e7c
commit
57e4169cfb
@ -1,5 +1,6 @@
|
||||
/* this demo shows the usage of method */
|
||||
#include "PikaStdLib_SysObj.h"
|
||||
#include "Main.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void obj_runWithInfo(PikaObj *self, char *cmd)
|
||||
@ -12,7 +13,7 @@ void obj_runWithInfo(PikaObj *self, char *cmd)
|
||||
int main()
|
||||
{
|
||||
/* new root object */
|
||||
PikaObj *root = newRootObj("root", New_PikaStdLib_SysObj);
|
||||
PikaObj *root = newRootObj("root", New_Main);
|
||||
|
||||
obj_runWithInfo(root, "set('a',1)");
|
||||
obj_runWithInfo(root, "print(a)");
|
||||
|
@ -13,7 +13,6 @@ class MemChecker(BaseObj):
|
||||
|
||||
|
||||
class SysObj(BaseObj):
|
||||
mem = MemChecker()
|
||||
|
||||
def type(argPath: str):
|
||||
pass
|
||||
|
@ -3,4 +3,4 @@ import PikaStdLib
|
||||
|
||||
|
||||
class Main(PikaStdLib.SysObj):
|
||||
pass
|
||||
mem = PikaStdLib.MemChecker()
|
||||
|
Loading…
x
Reference in New Issue
Block a user