mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 23:36:12 -08:00 
			
		
		
		
	Converting api to use custom string types.
This commit is contained in:
		@@ -79,7 +79,7 @@ Code gen__array( StrC type, sw type_size )
 | 
			
		||||
 | 
			
		||||
		Code init_reserve;
 | 
			
		||||
		{
 | 
			
		||||
			Code params = def_params( 2, t_allocator_info, name(allocator), t_sw, name(capacity) );
 | 
			
		||||
			Code params = def_params( 2, t_allocator_info, txt_n_len(allocator), t_sw, txt_n_len(capacity) );
 | 
			
		||||
			Code body = untyped_str( code(
 | 
			
		||||
				Header* header = rcast( Header*, alloc( allocator, sizeof(Header) + sizeof(Type) ));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user