Mercurial > vim
diff src/vim9.h @ 24901:fd6e5c816654 v8.2.2988
patch 8.2.2988: Vim9: debugger test fails
Commit: https://github.com/vim/vim/commit/c3a27bbd53a4653c2d8122a047a4cf2cfc52ed21
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 15:16:01 2021 +0200
patch 8.2.2988: Vim9: debugger test fails
Problem: Vim9: debugger test fails.
Solution: Get the debugger instructions when needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 15:30:02 +0200 |
parents | e61a2085c89b |
children | f11779c1d123 |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -493,10 +493,17 @@ extern garray_T def_functions; // Used for "lnum" when a range is to be taken from the stack and "!" is used. #define LNUM_VARIABLE_RANGE_ABOVE -888 +// Keep in sync with COMPILE_TYPE() #ifdef FEAT_PROFILE # define INSTRUCTIONS(dfunc) \ - ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \ - ? (dfunc)->df_instr_prof : (dfunc)->df_instr) + (debug_break_level > 0 \ + ? (dfunc)->df_instr_debug \ + : ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \ + ? (dfunc)->df_instr_prof \ + : (dfunc)->df_instr)) #else -# define INSTRUCTIONS(dfunc) ((dfunc)->df_instr) +# define INSTRUCTIONS(dfunc) \ + (debug_break_level > 0 \ + ? (dfunc)->df_instr_debug \ + : (dfunc)->df_instr) #endif