OLD | NEW |
1 | 1 |
2 /* Frame object interface */ | 2 /* Frame object interface */ |
3 | 3 |
4 #ifndef Py_FRAMEOBJECT_H | 4 #ifndef Py_FRAMEOBJECT_H |
5 #define Py_FRAMEOBJECT_H | 5 #define Py_FRAMEOBJECT_H |
6 #ifdef __cplusplus | 6 #ifdef __cplusplus |
7 extern "C" { | 7 extern "C" { |
8 #endif | 8 #endif |
9 | 9 |
10 typedef struct PyTryBlock { | 10 typedef struct PyTryBlock { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 _PYFRAME_GUARD_FAIL, | 89 _PYFRAME_GUARD_FAIL, |
90 } _PyFrameBailReason; | 90 } _PyFrameBailReason; |
91 | 91 |
92 enum _PyFrameGuardType { | 92 enum _PyFrameGuardType { |
93 _PYGUARD_DEFAULT = 0, | 93 _PYGUARD_DEFAULT = 0, |
94 _PYGUARD_BINOP, | 94 _PYGUARD_BINOP, |
95 _PYGUARD_ATTR, | 95 _PYGUARD_ATTR, |
96 _PYGUARD_CFUNC, | 96 _PYGUARD_CFUNC, |
97 _PYGUARD_BRANCH, | 97 _PYGUARD_BRANCH, |
98 _PYGUARD_STORE_SUBSCR, | 98 _PYGUARD_STORE_SUBSCR, |
| 99 _PYGUARD_LOAD_METHOD, |
| 100 _PYGUARD_CALL_METHOD, |
99 }; | 101 }; |
100 | 102 |
101 /* Standard object interface */ | 103 /* Standard object interface */ |
102 | 104 |
103 PyAPI_DATA(PyTypeObject) PyFrame_Type; | 105 PyAPI_DATA(PyTypeObject) PyFrame_Type; |
104 | 106 |
105 #define PyFrame_Check(op) ((op)->ob_type == &PyFrame_Type) | 107 #define PyFrame_Check(op) ((op)->ob_type == &PyFrame_Type) |
106 #define PyFrame_IsRestricted(f) \ | 108 #define PyFrame_IsRestricted(f) \ |
107 ((f)->f_builtins != (f)->f_tstate->interp->builtins) | 109 ((f)->f_builtins != (f)->f_tstate->interp->builtins) |
108 | 110 |
(...skipping 19 matching lines...) Expand all Loading... |
128 | 130 |
129 PyAPI_FUNC(int) PyFrame_ClearFreeList(void); | 131 PyAPI_FUNC(int) PyFrame_ClearFreeList(void); |
130 | 132 |
131 /* Return the line of code the frame is currently executing. */ | 133 /* Return the line of code the frame is currently executing. */ |
132 PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *); | 134 PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *); |
133 | 135 |
134 #ifdef __cplusplus | 136 #ifdef __cplusplus |
135 } | 137 } |
136 #endif | 138 #endif |
137 #endif /* !Py_FRAMEOBJECT_H */ | 139 #endif /* !Py_FRAMEOBJECT_H */ |
OLD | NEW |