diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-22 15:53:26 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-22 15:53:26 -0500 |
| commit | 3dd7854076c5f49032ad520dc56769faa1c35d08 (patch) | |
| tree | 9edc71f9f37b0a667ab0ac5586d34c0089744f21 /types.h | |
| parent | cdda494fe53374dc513b04ada2dc0fad6a8b83bc (diff) | |
Add optimized metamethods for enums and structs that hold packed data
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
