Update codeobject.h

This commit is contained in:
blueloveTH 2023-01-29 05:19:34 +08:00
parent 548eceb80c
commit 48ad1f2ca2

View File

@ -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) {