diff options
author | K.Takata <kentkt@csc.jp> | 2022-12-26 14:46:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-26 14:46:51 +0000 |
commit | a7fbaa43b7dbea55b2a48093f68abf819bc71682 (patch) | |
tree | 68423dbac3d0add21b987768d9ff1500a250f334 /src/if_python3.c | |
parent | b536540ab3c13db629432c411e92c05c4a3808ba (diff) |
patch 9.0.1102: complicated use of #ifdefv9.0.1102
Problem: Complicated use of #ifdef.
Solution: Simplify #ifdef use. (Ken Takata, closes #11745)
Diffstat (limited to 'src/if_python3.c')
-rw-r--r-- | src/if_python3.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/if_python3.c b/src/if_python3.c index e0c546a3f7..30332e1662 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -1167,14 +1167,10 @@ Python3_Init(void) // 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(). @@ -1182,6 +1178,8 @@ Python3_Init(void) emsg(_(e_critical_error_in_python3_initialization_check_your_installation)); goto fail; } +#else + Py_Initialize(); #endif #if PY_VERSION_HEX < 0x03090000 |