aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-25 22:38:13 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-26 00:05:29 -0400
commit2d6c91ab9954c2f3be27c7eefaaa498d91e557be (patch)
tree1054c05c02082f0426e6d539dab40879c57e7f16 /src/nvim/memline.c
parent62c7fcbdab28589b0efff03d7b26408362514a19 (diff)
downloadrneovim-2d6c91ab9954c2f3be27c7eefaaa498d91e557be.tar.gz
rneovim-2d6c91ab9954c2f3be27c7eefaaa498d91e557be.tar.bz2
rneovim-2d6c91ab9954c2f3be27c7eefaaa498d91e557be.zip
vim-patch:8.0.1688: some macros are used without a semicolon
Problem: Some macros are used without a semicolon, causing auto-indent to be wrong. Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes vim/vim#2729) https://github.com/vim/vim/commit/6f4700233fd925fe122b851f937929fb5e5da707
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r--src/nvim/memline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index a69669f680..b027459706 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1,9 +1,9 @@
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
-/* for debugging */
-/* #define CHECK(c, s) if (c) EMSG(s) */
-#define CHECK(c, s)
+// for debugging
+// #define CHECK(c, s) do { if (c) EMSG(s); } while (0)
+#define CHECK(c, s) do { } while (0)
/*
* memline.c: Contains the functions for appending, deleting and changing the