Searched refs:_PyObject_ASSERT (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Objects/ |
D | object.c | 111 _PyObject_ASSERT(op, (op->_ob_prev == NULL) == (op->_ob_next == NULL)); in _Py_AddToAllObjects() 252 _PyObject_ASSERT(self, in PyObject_CallFinalizerFromDealloc() 1049 _PyObject_ASSERT(name, Py_REFCNT(name) >= 1); in PyObject_SetAttr() 1086 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_GetDictPtr() 1087 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_GetDictPtr() 1262 _PyObject_ASSERT(obj, size <= PY_SSIZE_T_MAX); in _PyObject_GenericGetAttrWithDict() 1265 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_GenericGetAttrWithDict() 1266 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_GenericGetAttrWithDict() 2105 _PyObject_ASSERT(op, _PyObject_IS_GC(op)); in _PyTrash_deposit_object() 2106 _PyObject_ASSERT(op, !_PyObject_GC_IS_TRACKED(op)); in _PyTrash_deposit_object() [all …]
|
D | typeobject.c | 1310 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in subtype_dealloc() 2372 _PyObject_ASSERT((PyObject *)type, in subtype_getweakref() 2374 _PyObject_ASSERT((PyObject *)type, in subtype_getweakref() 4040 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in type_dealloc() 4267 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in type_clear() 5966 _PyObject_ASSERT((PyObject *)type, type->tp_descr_get != NULL); in type_ready_checks() 5969 _PyObject_ASSERT((PyObject *)type, type->tp_vectorcall_offset > 0); in type_ready_checks() 5970 _PyObject_ASSERT((PyObject *)type, type->tp_call != NULL); in type_ready_checks() 5975 _PyObject_ASSERT((PyObject *)type, (type->tp_flags & COLLECTION_FLAGS) != COLLECTION_FLAGS); in type_ready_checks() 6362 _PyObject_ASSERT((PyObject *)type, in PyType_Ready()
|
/third_party/python/Modules/ |
D | gcmodule.c | 446 _PyObject_ASSERT(FROM_GC(gc), gc_get_refs(gc) != 0); in update_refs() 454 _PyObject_ASSERT(_PyObject_CAST(parent), !_PyObject_IsFreed(op)); in visit_decref() 521 _PyObject_ASSERT(FROM_GC(prev), in visit_reachable() 523 _PyObject_ASSERT(FROM_GC(next), in visit_reachable() 688 _PyObject_ASSERT(op, gc->_gc_next & NEXT_MASK_UNREACHABLE); in move_legacy_finalizers() 708 _PyObject_ASSERT((PyObject*)FROM_GC(gc), gc->_gc_next & NEXT_MASK_UNREACHABLE); in clear_unreachable_mask() 816 _PyObject_ASSERT((PyObject *)wr, wr->wr_object == op); in handle_weakrefs() 818 _PyObject_ASSERT((PyObject *)wr, wr->wr_object == Py_None); in handle_weakrefs() 881 _PyObject_ASSERT(op, PyWeakref_Check(op)); in handle_weakrefs() 884 _PyObject_ASSERT(op, callback != NULL); in handle_weakrefs() [all …]
|
/third_party/python/Include/cpython/ |
D | object.h | 424 #define _PyObject_ASSERT(obj, expr) \ macro
|
/third_party/python/Doc/using/ |
D | configure.rst | 231 Enable ``assert(...)`` and ``_PyObject_ASSERT(...)`` assertions: don't set 281 ``_PyObject_ASSERT(...);``.
|