aboutsummaryrefslogtreecommitdiffhomepage
path: root/type.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-20 19:32:13 +0100
committerlemon <lsof@mailbox.org>2025-12-20 19:32:13 +0100
commit9721d6ba4036c325a7bdecbf867927566f78e81e (patch)
treef122f18c10b1a420585cb4e4127cdf05069d1942 /type.h
parente6fbab42185f4fb4e3a3b1e3e93eaa5d3d81b7c7 (diff)
some static assertions for packed type sizes
Diffstat (limited to 'type.h')
-rw-r--r--type.h1
1 files changed, 1 insertions, 0 deletions
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)