mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: use static_assert on MSVC versions that support it.
This greatly improves the error message
This commit is contained in:
parent
6eebeb577d
commit
3a72c9aa33
1 changed files with 5 additions and 1 deletions
|
|
@ -89,7 +89,11 @@ extern "C" {
|
|||
# define BLI_STATIC_ASSERT(a, msg) static_assert(a, msg);
|
||||
#elif defined(_MSC_VER)
|
||||
/* Visual Studio */
|
||||
# define BLI_STATIC_ASSERT(a, msg) _STATIC_ASSERT(a);
|
||||
# if _MSC_VER > 1910
|
||||
# define BLI_STATIC_ASSERT(a, msg) static_assert(a, msg);
|
||||
# else
|
||||
# define BLI_STATIC_ASSERT(a, msg) _STATIC_ASSERT(a);
|
||||
# endif
|
||||
#elif defined(__COVERITY__)
|
||||
/* Workaround error with coverity */
|
||||
# define BLI_STATIC_ASSERT(a, msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue