mirror of
https://github.com/neovim/neovim.git
synced 2026-01-08 04:18:49 +10:00
Merge pull request #4681 from equalsraf/tb-msvc-varmacros
MSVC: Avoid variadic macro bug in STATIC_ASSERT
This commit is contained in:
@@ -46,10 +46,10 @@
|
||||
|
||||
#define STATIC_ASSERT_PRAGMA_START
|
||||
#define STATIC_ASSERT_PRAGMA_END
|
||||
#define STATIC_ASSERT(...) \
|
||||
#define STATIC_ASSERT(cond, msg) \
|
||||
do { \
|
||||
STATIC_ASSERT_PRAGMA_START \
|
||||
STATIC_ASSERT_STATEMENT(__VA_ARGS__); \
|
||||
STATIC_ASSERT_STATEMENT(cond, msg); \
|
||||
STATIC_ASSERT_PRAGMA_END \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user