[Core] Fix more C99 compliance issues (#118)

This commit is contained in:
FintasticMan 2024-12-30 01:09:14 +01:00 committed by GitHub
parent c24a41b9e4
commit c13eef1c1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 463 additions and 467 deletions

View file

@ -0,0 +1,3 @@
$NAME$ $NAME$_Allocate_Arena(uint32_t capacity, Clay_Arena *arena) {
return CLAY__INIT($NAME$){.capacity = capacity, .length = 0, .internalArray = ($TYPE$ *)Clay__Array_Allocate_Arena(capacity, sizeof($TYPE$), CLAY__POINTER_ALIGNMENT, arena)};
}

View file

@ -1,6 +1,6 @@
typedef struct
CLAY__TYPEDEF($NAME$, struct
{
uint32_t capacity;
uint32_t length;
$TYPE$ *internalArray;
} $NAME$;
});

View file

@ -1,5 +1,5 @@
typedef struct
CLAY__TYPEDEF($NAME$Slice, struct
{
uint32_t length;
$TYPE$ *internalArray;
} $NAME$Slice;
});