mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-124379: Document _PyStackRef (gh-142321)
This commit is contained in:
parent
9d39c02498
commit
f2fba4c99a
3 changed files with 82 additions and 7 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue