[issue39968] move extension modules' macros of `get_xx_state()` to inline function.

2020-03-15 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19017 ___ Python tracker ___

[issue39968] move extension modules' macros of `get_xx_state()` to inline function.

2020-03-15 Thread hai shi
New submission from hai shi : as victor and petr said in PR18613:inline function is more better than macros, so I plan move all extension modules' macros of `get_xx_state()` to inline function. Note: some inline get_xx_state() can not be used directly in `tp_traverse`、`tp_free` and `tp_clear`