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