Skip to content

Commit

Permalink
Create even less code for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 19, 2024
1 parent 2c2afbe commit 114c4fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/integrations/kope.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,10 @@ void kope_export(char *directory, api_kind api) {

for (global_id i = 0; get_global(i) != NULL && get_global(i)->type != NO_TYPE; ++i) {
global *g = get_global(i);
if (!get_type(g->type)->built_in) {

type_id base_type = get_type(g->type)->kind == TYPE_ARRAY ? get_type(g->type)->array.base : g->type;

if (!get_type(base_type)->built_in) {
type *t = get_type(g->type);

char type_name[256];
Expand Down

0 comments on commit 114c4fc

Please sign in to comment.