mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	fix init for clay_string
This commit is contained in:
		
							parent
							
								
									27ec3331fd
								
							
						
					
					
						commit
						165085e70d
					
				
							
								
								
									
										2
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -80,7 +80,7 @@
 | 
			
		|||
 | 
			
		||||
#define CLAY__STRING_LENGTH(s) ((sizeof(s) / sizeof((s)[0])) - sizeof((s)[0]))
 | 
			
		||||
 | 
			
		||||
#define CLAY_STRING(string) (Clay_String) { .length = CLAY__STRING_LENGTH(string), .chars = (string) }
 | 
			
		||||
#define CLAY_STRING(string) CLAY__INIT(Clay_String) { .length = CLAY__STRING_LENGTH(string), .chars = (string) }
 | 
			
		||||
 | 
			
		||||
static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue