gh-108014: Add Py_IsFinalizing() function (#108032)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Victor Stinner 2023-08-18 12:34:41 +02:00 committed by GitHub
parent cc58ec9724
commit 3ff5ef2ad3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 24 additions and 9 deletions

View file

@ -129,7 +129,7 @@ _PyRuntime_Finalize(void)
}
int
_Py_IsFinalizing(void)
Py_IsFinalizing(void)
{
return _PyRuntimeState_GetFinalizing(&_PyRuntime) != NULL;
}