mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update codeobject.h
This commit is contained in:
parent
548eceb80c
commit
48ad1f2ca2
@ -180,8 +180,8 @@ public:
|
||||
PyVar _module;
|
||||
pkpy::shared_ptr<PyVarDict> _locals;
|
||||
|
||||
inline PyVarDict& f_locals(){ return *_locals; }
|
||||
inline PyVarDict& f_globals(){ return _module->attribs; }
|
||||
inline PyVarDict& f_locals() noexcept { return *_locals; }
|
||||
inline PyVarDict& f_globals() noexcept { return _module->attribs; }
|
||||
|
||||
Frame(const _Code code, PyVar _module, pkpy::shared_ptr<PyVarDict> _locals)
|
||||
: code(code), _module(_module), _locals(_locals) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user