File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,8 @@ static const _PyStackRef PyStackRef_NULL = { .bits = PyStackRef_NULL_BITS };
223223#define PyStackRef_IsFalse (ref ) (((ref).bits & (~Py_TAG_BITS)) == ((uintptr_t)&_Py_FalseStruct))
224224
225225
226+ #ifdef Py_DEBUG
227+
226228static inline void PyStackRef_CheckValid (_PyStackRef ref ) {
227229 int tag = ref .bits & Py_TAG_BITS ;
228230 PyObject * obj = BITS_TO_PTR_MASKED (ref );
@@ -242,7 +244,6 @@ static inline void PyStackRef_CheckValid(_PyStackRef ref) {
242244 }
243245}
244246
245- #ifdef Py_DEBUG
246247static inline int
247248PyStackRef_IsNone (_PyStackRef ref )
248249{
@@ -255,6 +256,7 @@ PyStackRef_IsNone(_PyStackRef ref)
255256
256257#else
257258
259+ #define PyStackRef_CheckValid (REF ) ((void)0)
258260#define PyStackRef_IsNone (REF ) ((REF).bits == (((uintptr_t)&_Py_NoneStruct) | Py_TAG_IMMORTAL))
259261
260262#endif
You can’t perform that action at this time.
0 commit comments