summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-15 19:29:30 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-15 19:29:30 +0000
commit139575de6653e7fd5807cb036dfb3684b815c519 (patch)
tree55a74125f139573cb1839c3b78cac73d3640f82c /src/vim.h
parent48f69cdfa401999ac5ff8cef6d8dcabe3f93e284 (diff)
patch 8.2.4575: Vim9: test for profiling still failsv8.2.4575
Problem: Vim9: test for profiling still fails. Solution: Update flags for profiling and breakpoints when obtaining the compile type. Do not set the FC_CLOSURE flag for a toplevel function.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/vim.h b/src/vim.h
index 4f80a09264..5f43ac7a64 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1839,20 +1839,6 @@ typedef enum {
CT_DEBUG // use df_instr_debug, overrules CT_PROFILE
} compiletype_T;
-// Keep in sync with INSTRUCTIONS().
-#ifdef FEAT_PROFILE
-# 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 \
- || may_break_in_function(ufunc) \
- ? CT_DEBUG \
- : CT_NONE
-#endif
-
/*
* When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64
* bits elsewhere. That causes memory corruption. Define time_T and use it