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.
1 parent c201d29 commit e2bac98Copy full SHA for e2bac98
pythoncapi_compat.h
@@ -2664,10 +2664,11 @@ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
2664
// to make objects immortal until 3.14 which has _Py_SetImmortal(). Since
2665
// immortal objects are primarily needed for free-threading, this API is implemented
2666
// for 3.14 and above.
2667
-extern void _Py_SetImmortal(PyObject *op);
2668
static inline int
2669
PyUnstable_SetImmortal(PyObject *op)
2670
{
+ PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
2671
+
2672
assert(op != NULL);
2673
if (!PyUnstable_Object_IsUniquelyReferenced(op) || PyUnicode_Check(op)) {
2674
return 0;
0 commit comments