MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyThreadState_GetFrame

Function PyThreadState_GetFrame

asyncpg/protocol/record/pythoncapi_compat.h:308–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306// bpo-40429 added PyThreadState_GetFrame() to Python 3.9.0b1
307#if PY_VERSION_HEX < 0x030900B1 && !defined(PYPY_VERSION)
308static inline PyFrameObject* PyThreadState_GetFrame(PyThreadState *tstate)
309{
310 assert(tstate != _Py_NULL);
311 return _Py_CAST(PyFrameObject *, Py_XNewRef(tstate->frame));
312}
313#endif
314
315#if !defined(PYPY_VERSION)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected