We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59df955 commit e2fef0cCopy full SHA for e2fef0c
Include/cpython/context.h
@@ -27,6 +27,10 @@ PyAPI_FUNC(PyObject *) PyContext_CopyCurrent(void);
27
PyAPI_FUNC(int) PyContext_Enter(PyObject *);
28
PyAPI_FUNC(int) PyContext_Exit(PyObject *);
29
30
+#define Py_FOREACH_CONTEXT_EVENT(V) \
31
+ V(ENTER) \
32
+ V(EXIT)
33
+
34
typedef enum {
35
#define Py_DEF_EVENT(op) Py_CONTEXT_EVENT_##op,
36
Py_FOREACH_CONTEXT_EVENT(Py_DEF_EVENT)
Include/internal/pycore_context.h
@@ -51,9 +51,6 @@ struct _pycontexttokenobject {
51
int tok_used;
52
};
53
54
-#define Py_FOREACH_CONTEXT_EVENT(V) \
55
- V(ENTER) \
56
- V(EXIT)
57
58
// _testinternalcapi.hamt() used by tests.
59
// Export for '_testcapi' shared extension
0 commit comments