diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-20 16:34:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 16:34:39 (GMT) |
commit | fff7bbfdb6b7c143b73b6b4b6b40e828c101110c (patch) | |
tree | 36493fb3f956d9c5867b7312a0916c38956d0e13 /Include/internal | |
parent | db7925a1cac361ad8c94123a38b00b70f306c48d (diff) | |
download | cpython-fff7bbfdb6b7c143b73b6b4b6b40e828c101110c.zip cpython-fff7bbfdb6b7c143b73b6b4b6b40e828c101110c.tar.gz cpython-fff7bbfdb6b7c143b73b6b4b6b40e828c101110c.tar.bz2 |
bpo-38858: Add _Py_IsMainInterpreter(tstate) (GH-17293)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_pystate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 0c3c1e3..936e9cb 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -269,6 +269,8 @@ PyAPI_FUNC(void) _PyRuntime_Finalize(void); #define _Py_CURRENTLY_FINALIZING(runtime, tstate) \ (runtime->finalizing == tstate) +PyAPI_FUNC(int) _Py_IsMainInterpreter(PyThreadState* tstate); + /* Variable and macro for in-line access to current thread and interpreter state */ |