| 148 | // bpo-40421 added PyFrame_GetCode() to Python 3.9.0b1 |
| 149 | #if PY_VERSION_HEX < 0x030900B1 || defined(PYPY_VERSION) |
| 150 | static inline PyCodeObject* PyFrame_GetCode(PyFrameObject *frame) |
| 151 | { |
| 152 | assert(frame != _Py_NULL); |
| 153 | assert(frame->f_code != _Py_NULL); |
| 154 | return _Py_CAST(PyCodeObject*, Py_NewRef(frame->f_code)); |
| 155 | } |
| 156 | #endif |
| 157 | |
| 158 | static inline PyCodeObject* _PyFrame_GetCodeBorrow(PyFrameObject *frame) |
no test coverage detected