[issue39968] port extension modules' macros of `get_module_state()` to inline function.

STINNER Victor report at bugs.python.org
Mon Mar 16 09:50:50 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

Oh, I forgot a cool advantage that I discovered late: debuggers and profilers understand inlined code and are able to get the name of the static inline function, whereas it's not possible to do that with macros. If I recall correctly, it works even if the function is inlined.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39968>
_______________________________________


More information about the Python-bugs-list mailing list