gh-124379: Document _PyStackRef (gh-142321)

This commit is contained in:
Sam Gross 2025-12-08 12:14:50 -05:00 committed by GitHub
parent 9d39c02498
commit f2fba4c99a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 82 additions and 7 deletions

View file

@ -479,13 +479,6 @@ PyStackRef_AsPyObjectBorrow(_PyStackRef stackref)
#define PyStackRef_IsDeferred(ref) (((ref).bits & Py_TAG_BITS) == Py_TAG_DEFERRED)
static inline PyObject *
PyStackRef_NotDeferred_AsPyObject(_PyStackRef stackref)
{
assert(!PyStackRef_IsDeferred(stackref));
return (PyObject *)stackref.bits;
}
static inline PyObject *
PyStackRef_AsPyObjectSteal(_PyStackRef stackref)
{