mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
This commit is contained in:
parent
c58672dd23
commit
ef6b3db24e
@ -169,7 +169,7 @@ public:
|
||||
PyObject* find_name_in_mro(PyObject* cls, StrName name);
|
||||
bool isinstance(PyObject* obj, Type cls_t);
|
||||
PyObject* exec(Str source, Str filename, CompileMode mode, PyObject* _module=nullptr);
|
||||
void exec(Str source);
|
||||
PyObject* exec(Str source);
|
||||
PyObject* eval(Str source);
|
||||
|
||||
template<typename ...Args>
|
||||
|
@ -114,8 +114,8 @@ namespace pkpy{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void VM::exec(Str source){
|
||||
exec(source, "main.py", EXEC_MODE);
|
||||
PyObject* VM::exec(Str source){
|
||||
return exec(source, "main.py", EXEC_MODE);
|
||||
}
|
||||
|
||||
PyObject* VM::eval(Str source){
|
||||
|
Loading…
x
Reference in New Issue
Block a user