mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-29 18:52:30 +00:00 
			
		
		
		
	pyosys: Use C++11 override keyword for bindings
7191dd16 dropped the YS_OVERRIDE macro, but it was still being generated
by the python bindings generator, resulting in errors like these when
compiled with ENABLE_PYOSYS=1:
kernel/python_wrappers.cc:350:21: error: expected ‘;’ at end of member declaration
  350 |   virtual void help() YS_OVERRIDE;
      |                     ^
      |                      ;
kernel/python_wrappers.cc:350:23: error: ‘YS_OVERRIDE’ does not name a type
  350 |   virtual void help() YS_OVERRIDE;
      |                       ^~~~~~~~~~~This commit is contained in:
		
							parent
							
								
									992d694d39
								
							
						
					
					
						commit
						a367281d30
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1414,7 +1414,7 @@ class WFunction: | ||||||
| 			text += ", " | 			text += ", " | ||||||
| 		if len(self.args) > 0: | 		if len(self.args) > 0: | ||||||
| 			text = text[:-2] | 			text = text[:-2] | ||||||
| 		text += ") YS_OVERRIDE;\n" | 		text += ") override;\n" | ||||||
| 		return text | 		return text | ||||||
| 
 | 
 | ||||||
| 	def gen_decl_hash_py(self): | 	def gen_decl_hash_py(self): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue