]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40826: Add _Py_EnsureTstateNotNULL() macro (GH-20571)
authorVictor Stinner <vstinner@python.org>
Mon, 1 Jun 2020 14:02:40 +0000 (16:02 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 14:02:40 +0000 (16:02 +0200)
commit3026cad59b87751a9215111776cac8e819458fce
treeb994018d331ca9f01f58ebd1a3d05c4f3aa1cdc0
parentdb64f12e4deda2abbafb6d2bd5c06762fca991ff
bpo-40826: Add _Py_EnsureTstateNotNULL() macro (GH-20571)

Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if
tstate is NULL, the error message contains the current function name.
Include/internal/pycore_pystate.h
Lib/test/test_capi.py
Python/ceval.c
Python/errors.c
Python/pystate.c
Python/sysmodule.c