Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1. static inline void _Py_DECREF(const char *filename, int lineno,
  2.                               PyObject *op)
  3. {
  4.     (void)filename; /* may be unused, shut up -Wunused-parameter */
  5.     (void)lineno; /* may be unused, shut up -Wunused-parameter */
  6.     _Py_DEC_REFTOTAL;
  7.     if (--op->ob_refcnt != 0) {
  8. #ifdef Py_REF_DEBUG
  9.         if (op->ob_refcnt < 0) {
  10.             _Py_NegativeRefcount(filename, lineno, op);
  11.         }
  12. #endif
  13.     }
  14.     else {
  15.         _Py_Dealloc(op);
  16.     }
  17. }
  18.  
  19. #define Py_DECREF(op) _Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement