From 540d28f433c658f843528f498271ca722db055b4 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 19 Mar 2019 18:57:07 +0100 Subject: Add static asserts to ensure the correct size of C4GroupHeader and C4GroupEntryCore --- src/c4groupentrycore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/c4groupentrycore.c') 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 #include +#include + +static_assert(sizeof(C4GroupEntryCore) == 316, "The size of the C4GroupEntryCore struct must be 316"); + void C4GroupEntryCore_init(C4GroupEntryCore* const this) { -- cgit v1.2.3-54-g00ecf