◐ Shell
clean mode source ↗

bpo-35059: Add Py_STATIC_INLINE() macro by vstinner · Pull Request #10093 · python/cpython

@vstinner

* Add Py_STATIC_INLINE() macro to declare "static inline" functions.
  The macro asks the compiler to always inline the function, whenever
  possible.
* Modify pydtrace.h to use Py_STATIC_INLINE() when WITH_DTRACE is
  not defined.
* Add an unit test on Py_DECREF() to make sure that
  _Py_NegativeRefcount() reports the correct filename.