summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-22 14:58:47 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-22 14:58:47 +0200
commit7a3fe3e180bdbce8f193abdf399559c5154bdaae (patch)
tree842eac4734c81db7a49ddaaf20b4fea732bb8162 /src/structs.h
parenta74901929e999a0052c1ce388ab09359c10cbb0d (diff)
downloadvim-git-7a3fe3e180bdbce8f193abdf399559c5154bdaae.tar.gz
patch 8.2.3200: Vim9: hard to guess where a type error is givenv8.2.3200
Problem: Vim9: hard to guess where a type error is given. Solution: Add the function name where possible. (closes #8608)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 5331183e1..265fe0253 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4438,7 +4438,10 @@ typedef enum {
// Struct used to pass to error messages about where the error happened.
typedef struct {
+ char *wt_func_name; // function name or NULL
char wt_index; // argument or variable index, 0 means unknown
char wt_variable; // "variable" when TRUE, "argument" otherwise
} where_T;
+#define WHERE_INIT {NULL, 0, 0}
+