forceString: Show position info
This commit is contained in:
		
							parent
							
								
									27b44b8cf7
								
							
						
					
					
						commit
						a5fe730940
					
				
					 6 changed files with 46 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -145,7 +145,7 @@ void ExprPos::show(std::ostream & str)
 | 
			
		|||
 | 
			
		||||
std::ostream & operator << (std::ostream & str, const Pos & pos)
 | 
			
		||||
{
 | 
			
		||||
    if (!pos.line)
 | 
			
		||||
    if (!pos)
 | 
			
		||||
        str << "undefined position";
 | 
			
		||||
    else
 | 
			
		||||
        str << (format("%1%:%2%:%3%") % pos.file % pos.line % pos.column).str();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue