mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
Fix WUT_CHECK_ macros not being evaluated on C++.
static_assert is only defined for C11.
This commit is contained in:
parent
690bd6ccbd
commit
c655780c34
@ -3,7 +3,7 @@
|
||||
#include <stddef.h>
|
||||
|
||||
// Ensure structs are correct size & offsets
|
||||
#if defined(static_assert)
|
||||
#if defined(static_assert) || defined(__cplusplus)
|
||||
# define WUT_CHECK_SIZE(Type, Size) \
|
||||
static_assert(sizeof(Type) == Size, \
|
||||
#Type " must be " #Size " bytes")
|
||||
|
Loading…
Reference in New Issue
Block a user