Mercurial > vim
comparison src/vim9.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 | 9f8535cf6f1b |
children | 088d8dc22045 |
comparison
equal
deleted
inserted
replaced
28100:0b5711bd05a9 | 28101:3bc0a639dfb0 |
---|---|
516 #define LNUM_VARIABLE_RANGE -999 | 516 #define LNUM_VARIABLE_RANGE -999 |
517 | 517 |
518 // Used for "lnum" when a range is to be taken from the stack and "!" is used. | 518 // Used for "lnum" when a range is to be taken from the stack and "!" is used. |
519 #define LNUM_VARIABLE_RANGE_ABOVE -888 | 519 #define LNUM_VARIABLE_RANGE_ABOVE -888 |
520 | 520 |
521 // Keep in sync with COMPILE_TYPE() | 521 // Keep in sync with get_compile_type() |
522 #ifdef FEAT_PROFILE | 522 #ifdef FEAT_PROFILE |
523 # define INSTRUCTIONS(dfunc) \ | 523 # define INSTRUCTIONS(dfunc) \ |
524 (debug_break_level > 0 || may_break_in_function(dfunc->df_ufunc) \ | 524 (debug_break_level > 0 || may_break_in_function(dfunc->df_ufunc) \ |
525 ? (dfunc)->df_instr_debug \ | 525 ? (dfunc)->df_instr_debug \ |
526 : ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \ | 526 : ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \ |