mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Log smallfix for compatibility with pyosys
This commit is contained in:
		
							parent
							
								
									ebc9f96f85
								
							
						
					
					
						commit
						00f5b122a1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -217,10 +217,10 @@ void log_module(RTLIL::Module *module, std::string indent = ""); | |||
| void log_cell(RTLIL::Cell *cell, std::string indent = ""); | ||||
| void log_wire(RTLIL::Wire *wire, std::string indent = ""); | ||||
| 
 | ||||
| #ifndef NDEBUG | ||||
| static inline void log_assert_worker(bool cond, const char *expr, const char *file, int line) { | ||||
| 	if (!cond) log_error("Assert `%s' failed in %s:%d.\n", expr, file, line); | ||||
| } | ||||
| #ifndef NDEBUG | ||||
| #  define log_assert(_assert_expr_) YOSYS_NAMESPACE_PREFIX log_assert_worker(_assert_expr_, #_assert_expr_, __FILE__, __LINE__) | ||||
| #else | ||||
| #  define log_assert(_assert_expr_) do { if (0) { (void)(_assert_expr_); } } while(0) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue