Problem: Complicated use of #ifdef.
Solution: Simplify #ifdef use. (Ken Takata, closes #11745)
// Catch exit() called in Py_Initialize().
hook_py_exit();
if (setjmp(exit_hook_jump_buf) == 0)
-#endif
{
Py_Initialize();
-#ifdef HOOK_EXIT
restore_py_exit();
-#endif
}
-#ifdef HOOK_EXIT
else
{
// exit() was called in Py_Initialize().
emsg(_(e_critical_error_in_python3_initialization_check_your_installation));
goto fail;
}
+#else
+ Py_Initialize();
#endif
#if PY_VERSION_HEX < 0x03090000
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1102,
/**/
1101,
/**/