From 9721d6ba4036c325a7bdecbf867927566f78e81e Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 20 Dec 2025 19:32:13 +0100 Subject: some static assertions for packed type sizes --- type.h | 1 + 1 file changed, 1 insertion(+) (limited to 'type.h') diff --git a/type.h b/type.h index c3dffb7..6647e70 100644 --- a/type.h +++ b/type.h @@ -44,6 +44,7 @@ union type { }; uint bits; }; +static_assert(sizeof(union type) == 4); #define isprimt(t) in_range((t), TYBOOL, TYVOID) #define isintt(t) in_range((t), TYENUM, TYUVLONG) -- cgit v1.2.3