Mercurial > vim
diff src/vim.h @ 28101:3bc0a639dfb0 v8.2.4575
patch 8.2.4575: Vim9: test for profiling still fails
Commit: https://github.com/vim/vim/commit/139575de6653e7fd5807cb036dfb3684b815c519
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 15 19:29:30 2022 +0000
patch 8.2.4575: Vim9: test for profiling still fails
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Mar 2022 20:30:03 +0100 |
parents | b737bfa876c5 |
children | 06535d568f74 |
line wrap: on
line diff
--- 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