We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 577c137 commit 6390e57Copy full SHA for 6390e57
Include/internal/pycore_stackref.h
@@ -644,15 +644,15 @@ static const _PyStackRef PyStackRef_NULL = { .bits = PyStackRef_NULL_BITS };
644
#define PyStackRef_IsFalse(REF) ((REF).bits == (((uintptr_t)&_Py_FalseStruct) | Py_TAG_REFCNT))
645
#define PyStackRef_IsNone(REF) ((REF).bits == (((uintptr_t)&_Py_NoneStruct) | Py_TAG_REFCNT))
646
647
-#ifdef Py_DEBUG
648
-
649
static inline PyObject *
650
_PyStackRef_AsTuple(_PyStackRef ref, PyObject *op)
651
{
652
int flags = ref.bits & Py_TAG_BITS;
653
return Py_BuildValue("(Ii)", Py_REFCNT(op), flags);
654
}
655
+#ifdef Py_DEBUG
+
656
static inline void PyStackRef_CheckValid(_PyStackRef ref) {
657
assert(ref.bits != 0);
658
int tag = ref.bits & Py_TAG_BITS;
0 commit comments