diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-03-19 18:57:07 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-03-19 18:57:07 +0100 |
| commit | 540d28f433c658f843528f498271ca722db055b4 (patch) | |
| tree | cd5775d4aba3b16edc99e0d0d324e7f6769aee68 /src/c4groupentrycore.c | |
| parent | ec6f8c4fe162500645109eb24856051c97bfb2fe (diff) | |
| download | cc4group-540d28f433c658f843528f498271ca722db055b4.tar.gz cc4group-540d28f433c658f843528f498271ca722db055b4.zip | |
Add static asserts to ensure the correct size of C4GroupHeader and C4GroupEntryCore
Diffstat (limited to 'src/c4groupentrycore.c')
| -rw-r--r-- | src/c4groupentrycore.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c4groupentrycore.c b/src/c4groupentrycore.c index 8b483cc..d178653 100644 --- a/src/c4groupentrycore.c +++ b/src/c4groupentrycore.c @@ -1,6 +1,10 @@ #include "c4groupentrycore.h" #include <string.h> #include <time.h> +#include <assert.h> + +static_assert(sizeof(C4GroupEntryCore) == 316, "The size of the C4GroupEntryCore struct must be 316"); + void C4GroupEntryCore_init(C4GroupEntryCore* const this) { |
