We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3852c28 commit 259218aCopy full SHA for 259218a
Python/ceval_macros.h
@@ -212,8 +212,12 @@ GETITEM(PyObject *v, Py_ssize_t i) {
212
#define WITHIN_STACK_BOUNDS() \
213
(frame->owner == FRAME_OWNED_BY_INTERPRETER || (STACK_LEVEL() >= 0 && STACK_LEVEL() <= STACK_SIZE()))
214
215
+#ifdef Py_DEBUG
216
#define WITHIN_STACK_BOUNDS_WITH_CACHE() \
217
(frame->owner == FRAME_OWNED_BY_INTERPRETER || (STACK_LEVEL() >= 0 && (STACK_LEVEL() + current_cached_values) <= STACK_SIZE()))
218
+#else
219
+#define WITHIN_STACK_BOUNDS_WITH_CACHE WITHIN_STACK_BOUNDS
220
+#endif
221
222
/* Data access macros */
223
#define FRAME_CO_CONSTS (_PyFrame_GetCode(frame)->co_consts)
0 commit comments