mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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.
This commit is contained in:
14
src/vim.h
14
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
|
||||
|
Reference in New Issue
Block a user