comparison src/vim9compile.c @ 24897:80edcb27d19a v8.2.2986

patch 8.2.2986: build failure without the profile feature Commit: https://github.com/vim/vim/commit/d9f31c13d217b4b97f724774a67a6d1f8640e8ae Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 13 14:15:29 2021 +0200 patch 8.2.2986: build failure without the profile feature Problem: Build failure without the profile feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jun 2021 14:30:03 +0200
parents e61a2085c89b
children 99324f6b535a
comparison
equal deleted inserted replaced
24896:fbfa2a82bc87 24897:80edcb27d19a
1869 dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data) 1869 dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data)
1870 + ufunc->uf_dfunc_idx; 1870 + ufunc->uf_dfunc_idx;
1871 1871
1872 switch (compile_type) 1872 switch (compile_type)
1873 { 1873 {
1874 case CT_PROFILE:
1875 #ifdef FEAT_PROFILE
1876 return dfunc->df_instr_prof == NULL;
1877 #endif
1874 case CT_NONE: 1878 case CT_NONE:
1875 return dfunc->df_instr == NULL; 1879 return dfunc->df_instr == NULL;
1876 case CT_PROFILE:
1877 return dfunc->df_instr_prof == NULL;
1878 case CT_DEBUG: 1880 case CT_DEBUG:
1879 return dfunc->df_instr_debug == NULL; 1881 return dfunc->df_instr_debug == NULL;
1880 } 1882 }
1881 } 1883 }
1882 1884