summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-17 17:00:27 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-17 17:00:27 +0100
commit064095012c0b8e4e43e75834b337115950898fbf (patch)
tree2976dc56721bb9ee2a25a8fef898948310e76a6f /src/vim.h
parent527ed38cfacc5abf32ef3e63f98966d011cd95de (diff)
downloadvim-git-064095012c0b8e4e43e75834b337115950898fbf.tar.gz
patch 8.2.2527: Vim9: lambda return type is not determined at script levelv8.2.2527
Problem: Vim9: lambda return type is not determined at script level. Solution: Compile the lambda to get the return type. (closes #7843)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 73cb2692e..e27bf8bb7 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1787,6 +1787,12 @@ typedef struct timeval proftime_T;
typedef int proftime_T; // dummy for function prototypes
#endif
+#ifdef FEAT_PROFILE
+# define PROFILING(ufunc) (do_profiling == PROF_YES && (ufunc)->uf_profiling)
+#else
+# define PROFILING(ufunc) FALSE
+#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