mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Fixed parsing of macros with no arguments and expansion text starting with "("
This commit is contained in:
		
							parent
							
								
									ebf9abfeb6
								
							
						
					
					
						commit
						72026a934e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -309,9 +309,10 @@ std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::m | |||
| 			std::map<std::string, int> args; | ||||
| 			skip_spaces(); | ||||
| 			name = next_token(true); | ||||
| 			skip_spaces(); | ||||
| 			int newline_count = 0; | ||||
| 			int state = 0; | ||||
| 			if (skip_spaces() != "") | ||||
| 				state = 3; | ||||
| 			while (!tok.empty()) { | ||||
| 				tok = next_token(); | ||||
| 				if (state == 0 && tok == "(") { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue