summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-09-02 18:49:06 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-02 18:49:06 +0200
commit26a4484da20039b61f18d3565a4b4339c4d1f7e3 (patch)
tree36b3d0dada37e17686da0627af5cda5848658052 /src/vim.h
parent04626c243c47af91c2580eaf23e12286180e0e81 (diff)
patch 8.2.3395: Vim9: expression breakpoint not checked in :def functionv8.2.3395
Problem: Vim9: expression breakpoint not checked in :def function. Solution: Always compile a function for debugging if there is an expression breakpoint. (closes #8803)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vim.h b/src/vim.h
index b9105b5d1d..cb769e2a4b 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1808,9 +1808,16 @@ typedef enum {
// Keep in sync with INSTRUCTIONS().
#ifdef FEAT_PROFILE
-# define COMPILE_TYPE(ufunc) (debug_break_level > 0 || ufunc->uf_has_breakpoint ? CT_DEBUG : do_profiling == PROF_YES && (ufunc)->uf_profiling ? CT_PROFILE : CT_NONE)
+# define COMPILE_TYPE(ufunc) (debug_break_level > 0 \
+ || may_break_in_function(ufunc) \
+ ? CT_DEBUG \
+ : do_profiling == PROF_YES && (ufunc)->uf_profiling \
+ ? CT_PROFILE : CT_NONE)
#else
-# define COMPILE_TYPE(ufunc) debug_break_level > 0 || ufunc->uf_has_breakpoint ? CT_DEBUG : CT_NONE
+# define COMPILE_TYPE(ufunc) debug_break_level > 0 \
+ || may_break_in_function(ufunc) \
+ ? CT_DEBUG \
+ : CT_NONE
#endif
/*