mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add missing log_dump handler for std::vector<>
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
		
							parent
							
								
									6781746872
								
							
						
					
					
						commit
						be1a12595a
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								kernel/log.h
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								kernel/log.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -419,6 +419,18 @@ static inline void log_dump_val_worker(pool<K, OPS> &v) {
 | 
			
		|||
	log(" }");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template<typename K>
 | 
			
		||||
static inline void log_dump_val_worker(std::vector<K> &v) {
 | 
			
		||||
	log("{");
 | 
			
		||||
	bool first = true;
 | 
			
		||||
	for (auto &it : v) {
 | 
			
		||||
		log(first ? " " : ", ");
 | 
			
		||||
		log_dump_val_worker(it);
 | 
			
		||||
		first = false;
 | 
			
		||||
	}
 | 
			
		||||
	log(" }");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template<typename T>
 | 
			
		||||
static inline void log_dump_val_worker(T *ptr) { log("%p", ptr); }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue