mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-30 22:40:54 -07:00 
			
		
		
		
	Added ability for a CodeBody to append another
This commit is contained in:
		| @@ -710,6 +710,13 @@ struct CodeBody | ||||
| 	{ | ||||
| 		raw()->append( other.ast ); | ||||
| 	} | ||||
| 	void append( CodeBody body ) | ||||
| 	{ | ||||
| 		for ( Code entry : body ) | ||||
| 		{ | ||||
| 			append( entry ); | ||||
| 		} | ||||
| 	} | ||||
| 	bool has_entries() | ||||
| 	{ | ||||
| 		return rcast( AST*, ast )->has_entries(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user