Mercurial > vim
comparison src/vim.h @ 24895:e61a2085c89b v8.2.2985
patch 8.2.2985: Vim9: a compiled function cannot be debugged
Commit: https://github.com/vim/vim/commit/e99d422bbd3e47620915bf89671673f0711671b4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 14:01:26 2021 +0200
patch 8.2.2985: Vim9: a compiled function cannot be debugged
Problem: Vim9: a compiled function cannot be debugged.
Solution: Add initial debugging support.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 14:15:04 +0200 |
parents | e8451dc0d643 |
children | fd6e5c816654 |
comparison
equal
deleted
inserted
replaced
24894:6270bfeab91f | 24895:e61a2085c89b |
---|---|
1792 # endif | 1792 # endif |
1793 #else | 1793 #else |
1794 typedef int proftime_T; // dummy for function prototypes | 1794 typedef int proftime_T; // dummy for function prototypes |
1795 #endif | 1795 #endif |
1796 | 1796 |
1797 // Type of compilation passed to compile_def_function() | |
1798 typedef enum { | |
1799 CT_NONE, // use df_instr | |
1800 CT_PROFILE, // use df_instr_prof | |
1801 CT_DEBUG // use df_instr_debug, overrules CT_PROFILE | |
1802 } compiletype_T; | |
1803 | |
1797 #ifdef FEAT_PROFILE | 1804 #ifdef FEAT_PROFILE |
1798 # define PROFILING(ufunc) (do_profiling == PROF_YES && (ufunc)->uf_profiling) | 1805 # define COMPILE_TYPE(ufunc) (debug_break_level > 0 ? CT_DEBUG : do_profiling == PROF_YES && (ufunc)->uf_profiling ? CT_PROFILE : CT_NONE) |
1799 #else | 1806 #else |
1800 # define PROFILING(ufunc) FALSE | 1807 # define COMPILE_TYPE(ufunc) debug_break_level > 0 ? CT_DEBUG : CT_NONE |
1801 #endif | 1808 #endif |
1802 | 1809 |
1803 /* | 1810 /* |
1804 * When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64 | 1811 * When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64 |
1805 * bits elsewhere. That causes memory corruption. Define time_T and use it | 1812 * bits elsewhere. That causes memory corruption. Define time_T and use it |