mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
macros: add static assert helper
So that we can use this from gnu99 such as from GTK.
This commit is contained in:
@ -55,7 +55,7 @@ typedef struct _MappedRingHeader
|
||||
uint32_t size;
|
||||
} MappedRingHeader;
|
||||
|
||||
static_assert (sizeof (MappedRingHeader) == 16, "MappedRingHeader changed size");
|
||||
SYSPROF_STATIC_ASSERT (sizeof (MappedRingHeader) == 16, "MappedRingHeader changed size");
|
||||
|
||||
/*
|
||||
* MappedRingBuffer is used to wrap both the reader and writer
|
||||
|
||||
Reference in New Issue
Block a user