Exception: Constructor now takes printf style arguments
This commit is contained in:
		
							parent
							
								
									5b736bcfd6
								
							
						
					
					
						commit
						9759e52b3c
					
				
					 7 changed files with 20 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -94,9 +94,7 @@ void raiseRbExc(const Exception &exc)
 | 
			
		|||
	RbData *data = getRbData();
 | 
			
		||||
	VALUE excClass = data->exc[excToRbExc[exc.type]];
 | 
			
		||||
 | 
			
		||||
	static char buffer[512];
 | 
			
		||||
	exc.snprintf(buffer, sizeof(buffer));
 | 
			
		||||
	rb_raise(excClass, buffer);
 | 
			
		||||
	rb_raise(excClass, exc.msg.c_str());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue