diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-04-18 12:54:25 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-04-29 13:52:12 +0200 |
commit | 995c1863685d7fa0cc2638b55efee55c4cb7ffc9 (patch) | |
tree | b5d650a10aba07e1dad76bac48dd46013ddfa2cf /src/nvim/assert.h | |
parent | 8c548c9e5416b4e25b51c018ceaa433756ee99b1 (diff) | |
download | rneovim-995c1863685d7fa0cc2638b55efee55c4cb7ffc9.tar.gz rneovim-995c1863685d7fa0cc2638b55efee55c4cb7ffc9.tar.bz2 rneovim-995c1863685d7fa0cc2638b55efee55c4cb7ffc9.zip |
refactor(uncrustify): disable formatting in problematic code sections
Diffstat (limited to 'src/nvim/assert.h')
-rw-r--r-- | src/nvim/assert.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/assert.h b/src/nvim/assert.h index 65519a8004..bc5260b914 100644 --- a/src/nvim/assert.h +++ b/src/nvim/assert.h @@ -1,5 +1,3 @@ -// uncrustify:off - #ifndef NVIM_ASSERT_H #define NVIM_ASSERT_H @@ -110,6 +108,8 @@ # define STATIC_ASSERT_STATEMENT STATIC_ASSERT_EXPR #endif +// uncrustify:off + #define ASSERT_CONCAT_(a, b) a##b #define ASSERT_CONCAT(a, b) ASSERT_CONCAT_(a, b) // These can't be used after statements in c89. @@ -125,6 +125,8 @@ ((enum { ASSERT_CONCAT(assert_line_, __LINE__) = 1/(!!(e)), }) 0) #endif +// uncrustify:on + /// @def STRICT_ADD /// @brief Adds (a + b) and stores result in `c`. Aborts on overflow. /// |