mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			329 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			329 B
		
	
	
	
		
			C
		
	
	
	
	
	
typedef struct
 | 
						|
{
 | 
						|
	uint32_t capacity;
 | 
						|
	uint32_t length;
 | 
						|
	$TYPE$ *internalArray;
 | 
						|
} $NAME$;
 | 
						|
 | 
						|
$NAME$ $NAME$_Allocate_Arena(uint32_t capacity, Clay_Arena *arena) {
 | 
						|
    return ($NAME$){.capacity = capacity, .length = 0, .internalArray = ($TYPE$ *)Clay__Array_Allocate_Arena(capacity, sizeof($TYPE$), CLAY__ALIGNMENT($TYPE$), arena)};
 | 
						|
} |