mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update codeobject.cpp
This commit is contained in:
parent
c6473661dd
commit
0f543a2c96
@ -24,7 +24,12 @@ namespace pkpy{
|
|||||||
this->decl = decl;
|
this->decl = decl;
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject* const PY_NULL = (PyObject*)new int(0);
|
struct PySignalObject: PyObject {
|
||||||
PyObject* const PY_OP_CALL = (PyObject*)new int(1);
|
PySignalObject() : PyObject(0) { gc_enabled = false; }
|
||||||
PyObject* const PY_OP_YIELD = (PyObject*)new int(2);
|
void _obj_gc_mark() override {}
|
||||||
|
};
|
||||||
|
|
||||||
|
PyObject* const PY_NULL = new PySignalObject();
|
||||||
|
PyObject* const PY_OP_CALL = new PySignalObject();
|
||||||
|
PyObject* const PY_OP_YIELD = new PySignalObject();
|
||||||
} // namespace pkpy
|
} // namespace pkpy
|
Loading…
x
Reference in New Issue
Block a user