Skip to content

Commit 3bfcf6c

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Exclude _Ci_PySetTStateForGC from the limited API
Summary: Looks like we need one more fix to get the generated files check happy - we need to make sure _Ci_PySetTStateForGC doesn't show up in the limited API. https://github.com/facebookincubator/cinder/actions/runs/27295349367/job/80626496749 Reviewed By: itamaro Differential Revision: D108175515 fbshipit-source-id: 976df317234fd31f86c26b98e58966b2d619723d
1 parent 207e93e commit 3bfcf6c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Include/pystate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
119119
*/
120120
PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
121121

122+
#ifndef Py_LIMITED_API
122123
// Sets the thread state for multi-threaded GC
123124
PyAPI_FUNC(void) _Ci_PySetTStateForGC(PyThreadState *tstate);
125+
#endif
124126

125127
#ifndef Py_LIMITED_API
126128
# define Py_CPYTHON_PYSTATE_H

0 commit comments

Comments
 (0)