clay/generator/clay_header_generator/array_allocate_pointer.template.c
Harrison Lambeth 0cdc1fdc7a initial pass
2025-01-15 22:34:35 -07:00

3 lines
248 B
C

$NAME$ $NAME$_Allocate_Arena(int32_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)};
}