summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-09 14:55:31 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-09 14:55:31 +0200
commit29a86ffee794bc1a0efde215c203cf9529047252 (patch)
treee718319396ca7a66a071c72fb02af88db2426e3f /src/structs.h
parentf842cd9e285afb9d86c6f9bff400e5e576f873c0 (diff)
downloadvim-git-29a86ffee794bc1a0efde215c203cf9529047252.tar.gz
patch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expectedv8.2.1641
Problem: Vim9: cannot use 0 or 1 where a bool is expected. Solution: Allow using 0 and 1 for a bool type. (closes #6903)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index dba9be65d..0899ae792 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1373,6 +1373,7 @@ struct type_S {
#define TTFLAG_VARARGS 1 // func args ends with "..."
#define TTFLAG_OPTARG 2 // func arg type with "?"
+#define TTFLAG_BOOL_OK 4 // can be converted to bool
/*
* Structure to hold an internal variable without a name.