MCPcopy Create free account
hub / github.com/baldurk/renderdoc / PyFrame_GetCode

Function PyFrame_GetCode

qrenderdoc/3rdparty/pythoncapi_compat.h:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148// bpo-40421 added PyFrame_GetCode() to Python 3.9.0b1
149#if PY_VERSION_HEX < 0x030900B1 || defined(PYPY_VERSION)
150static 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
158static inline PyCodeObject* _PyFrame_GetCodeBorrow(PyFrameObject *frame)

Callers 4

_PyFrame_GetCodeBorrowFunction · 0.85
outstream_writeMethod · 0.85
traceEventMethod · 0.85
HandleExceptionFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected