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 e223e36 commit 9e11cc7Copy full SHA for 9e11cc7
Include/internal/pycore_stackref.h
@@ -506,6 +506,11 @@ PyStackRef_AsPyObjectBorrow(_PyStackRef ref)
506
return BITS_TO_PTR_MASKED(ref);
507
}
508
509
+#ifdef Py_DEBUG
510
+#define PyStackRef_AsPyObjectBorrow(REF) \
511
+ (assert(!PyStackRef_IsTaggedInt(REF)), PyStackRef_AsPyObjectBorrow(REF))
512
+#endif
513
+
514
static inline _PyStackRef
515
PyStackRef_Borrow(_PyStackRef ref)
516
{
0 commit comments