summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-11-09 10:27:20 (GMT)
committerGitHub <noreply@github.com>2023-11-09 10:27:20 (GMT)
commit30ec968befde2313f66af4754d410dc5a080a20a (patch)
tree247ae312739ca0168fba58a08d3d3ccba2b5a70f /Include
parent97c4c06d0d235aad00e5b6b10af8b8d68c889b9b (diff)
downloadcpython-30ec968befde2313f66af4754d410dc5a080a20a.zip
cpython-30ec968befde2313f66af4754d410dc5a080a20a.tar.gz
cpython-30ec968befde2313f66af4754d410dc5a080a20a.tar.bz2
gh-111354: remove comparisons with enum values, variable reuse, unused imports in genobject.c (#111708)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_frame.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h
index f95352f..0f9e733 100644
--- a/Include/internal/pycore_frame.h
+++ b/Include/internal/pycore_frame.h
@@ -45,6 +45,7 @@ typedef enum _framestate {
} PyFrameState;
#define FRAME_STATE_SUSPENDED(S) ((S) == FRAME_SUSPENDED || (S) == FRAME_SUSPENDED_YIELD_FROM)
+#define FRAME_STATE_FINISHED(S) ((S) >= FRAME_COMPLETED)
enum _frameowner {
FRAME_OWNED_BY_THREAD = 0,