macros: add static assert helper

So that we can use this from gnu99 such as from GTK.
This commit is contained in:
Christian Hergert
2020-07-04 16:11:31 -07:00
parent 50d33452ab
commit 57183ab8e2
4 changed files with 30 additions and 25 deletions

View File

@ -67,8 +67,8 @@ SYSPROF_BEGIN_DECLS
typedef uint64_t SysprofAddress;
static_assert (sizeof (SysprofAddress) >= sizeof (void *),
"Address space is too big");
SYSPROF_STATIC_ASSERT (sizeof (SysprofAddress) >= sizeof (void *),
"Address space is too big");
typedef enum
{