aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-22 15:53:26 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-22 15:53:26 -0500
commit3dd7854076c5f49032ad520dc56769faa1c35d08 (patch)
tree9edc71f9f37b0a667ab0ac5586d34c0089744f21 /types.h
parentcdda494fe53374dc513b04ada2dc0fad6a8b83bc (diff)
Add optimized metamethods for enums and structs that hold packed data
Diffstat (limited to 'types.h')
-rw-r--r--types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.h b/types.h
index 0163c4dc..29098835 100644
--- a/types.h
+++ b/types.h
@@ -150,6 +150,7 @@ PUREFUNC bool can_promote(type_t *actual, type_t *needed);
PUREFUNC const char *enum_single_value_tag(type_t *enum_type, type_t *t);
PUREFUNC bool is_int_type(type_t *t);
PUREFUNC bool is_numeric_type(type_t *t);
+PUREFUNC bool is_packed_data(type_t *t);
PUREFUNC size_t type_size(type_t *t);
PUREFUNC size_t type_align(type_t *t);
PUREFUNC size_t unpadded_struct_size(type_t *t);