mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	cxxrtl, fmt: escape double quotes in c strings
This commit is contained in:
		
							parent
							
								
									7cfc49791f
								
							
						
					
					
						commit
						8bc4bd8a20
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -612,7 +612,7 @@ std::string escape_c_string(const std::string &input) | |||
| 	output.push_back('"'); | ||||
| 	for (auto c : input) { | ||||
| 		if (::isprint(c)) { | ||||
| 			if (c == '\\') | ||||
| 			if (c == '\\' || c == '"') | ||||
| 				output.push_back('\\'); | ||||
| 			output.push_back(c); | ||||
| 		} else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue