We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyCode_GetCode
1 parent d71d74e commit 6b67078Copy full SHA for 6b67078
coverage/ctracer/util.h
@@ -37,7 +37,10 @@
37
#define MyFrame_GetCode(f) ((f)->f_code)
38
#endif
39
40
-#if PY_VERSION_HEX >= 0x030B00A7
+#if PY_VERSION_HEX >= 0x030B00B1
41
+#define MyCode_GetCode(co) (PyCode_GetCode(co))
42
+#define MyCode_FreeCode(code) Py_XDECREF(code)
43
+#elif PY_VERSION_HEX >= 0x030B00A7
44
#define MyCode_GetCode(co) (PyObject_GetAttrString((PyObject *)(co), "co_code"))
45
#define MyCode_FreeCode(code) Py_XDECREF(code)
46
#else
0 commit comments