summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pystate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h
index 7e4c57e..af5cc4a 100644
--- a/Include/cpython/pystate.h
+++ b/Include/cpython/pystate.h
@@ -92,6 +92,15 @@ struct _ts {
/* padding to align to 4 bytes */
unsigned int :24;
} _status;
+#ifdef Py_BUILD_CORE
+# define _PyThreadState_WHENCE_NOTSET -1
+# define _PyThreadState_WHENCE_UNKNOWN 0
+# define _PyThreadState_WHENCE_INTERP 1
+# define _PyThreadState_WHENCE_THREADING 2
+# define _PyThreadState_WHENCE_GILSTATE 3
+# define _PyThreadState_WHENCE_EXEC 4
+#endif
+ int _whence;
int py_recursion_remaining;
int py_recursion_limit;