mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Split with_warning_string_from for the last named parameter
				
					
				
			This commit is contained in:
		
							parent
							
								
									962f9932af
								
							
						
					
					
						commit
						e294e6f417
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								error.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								error.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -406,8 +406,10 @@ warning_string(rb_encoding *enc, const char *fmt, va_list args)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#define with_warning_string(mesg, enc, fmt) \
 | 
			
		||||
    with_warning_string_from(mesg, enc, fmt, fmt)
 | 
			
		||||
#define with_warning_string_from(mesg, enc, fmt, last_arg) \
 | 
			
		||||
    VALUE mesg; \
 | 
			
		||||
    va_list args; va_start(args, fmt); \
 | 
			
		||||
    va_list args; va_start(args, last_arg); \
 | 
			
		||||
    mesg = warning_string(enc, fmt, args); \
 | 
			
		||||
    va_end(args);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue