Skip to content

bpo-35059: Add Py_STATIC_INLINE() macro #10093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2018
Merged

bpo-35059: Add Py_STATIC_INLINE() macro #10093

merged 1 commit into from
Oct 25, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 25, 2018

  • 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.

https://bugs.python.org/issue35059

* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants