sysobj not include mem

This commit is contained in:
lyon 2021-08-24 14:48:20 +08:00
parent bcb43e5e7c
commit 57e4169cfb
3 changed files with 3 additions and 3 deletions

View File

@ -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)");

View File

@ -13,7 +13,6 @@ class MemChecker(BaseObj):
class SysObj(BaseObj):
mem = MemChecker()
def type(argPath: str):
pass

View File

@ -3,4 +3,4 @@ import PikaStdLib
class Main(PikaStdLib.SysObj):
pass
mem = PikaStdLib.MemChecker()