stackless-dev / stackless

The Stackless Python programming language
http://www.stackless.com/
Other
1.03k stars 60 forks source link

Convert macro HANDLE_UNWINDING in ceval.c to a static inline function #272

Closed akruis closed 3 years ago

akruis commented 3 years ago

Upstream recently successfuly converted macros to static inline functions. This inspired me to try it too and convert the macro HANDLE_UNWINDING to a static inline function. I checked the assembly code of an -O3 build. The function gets properly in-lined.

The benefit is better maintainability. With this change, it is possible to single step through this code or set breakpoints.

akruis commented 3 years ago

Done