aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/types.h')
-rw-r--r--src/nvim/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/types.h b/src/nvim/types.h
index fb10bf21d9..d90c623955 100644
--- a/src/nvim/types.h
+++ b/src/nvim/types.h
@@ -45,6 +45,9 @@ typedef enum {
kTrue = 1,
} TriState;
+#define TRISTATE_TO_BOOL(val, \
+ default) ((val) == kTrue ? true : ((val) == kFalse ? false : (default)))
+
typedef struct Decoration Decoration;
#endif // NVIM_TYPES_H