diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-25 16:41:43 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-25 16:41:43 -0400 |
| commit | b2033f6d6d8918ed9ac72468aaa5faf96f8157dd (patch) | |
| tree | 94d8697b8d664d716feeaa3831fa494c1eedcb6f /src/types.h | |
| parent | f2f43f2e239890847c2f1833ad2e7baf07108145 (diff) | |
Optimize codegen for enums: no longer bother with a struct wrapper, but
just use a C enum type instead. This will make it easier to use
externally defined enums in the future.
Diffstat (limited to 'src/types.h')
| -rw-r--r-- | src/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index 33e54ff5..3b789560 100644 --- a/src/types.h +++ b/src/types.h @@ -157,5 +157,6 @@ PUREFUNC type_t *non_optional(type_t *t); type_t *get_field_type(type_t *t, const char *field_name); PUREFUNC type_t *get_iterated_type(type_t *t); type_t *_make_function_type(type_t *ret, int n, arg_t args[n]); +PUREFUNC bool enum_has_fields(type_t *t); // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
