mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-31 06:50:53 -07:00 
			
		
		
		
	Added CodeSpecifiers::index_of for cpp, fix token bug with () operator in parse_operator_after_ret_type
This commit is contained in:
		| @@ -253,6 +253,7 @@ struct CodeSpecifiers | ||||
| 	Using_Code( CodeSpecifiers ); | ||||
| 	bool       append( Specifier spec )            { return specifiers_append(* this, spec); } | ||||
| 	s32        has( Specifier spec )               { return specifiers_has(* this, spec); } | ||||
| 	s32        index_of( Specifier spec )          { return specifiers_index_of(* this, spec); } | ||||
| 	s32        remove( Specifier to_remove )       { return specifiers_remove(* this, to_remove); } | ||||
| 	StrBuilder to_strbuilder()                     { return specifiers_to_strbuilder(* this ); } | ||||
| 	void       to_strbuilder( StrBuilder& result ) { return specifiers_to_strbuilder_ref(* this, & result); } | ||||
|   | ||||
| @@ -2390,7 +2390,10 @@ CodeOperator parse_operator_after_ret_type( | ||||
| 		case '(': | ||||
| 		{ | ||||
| 			if ( currtok.Text.Ptr[1] == ')' ) | ||||
| 			{ | ||||
| 				op = Op_FunctionCall; | ||||
| 				eat(Tok_Paren_Open); | ||||
| 			} | ||||
|  | ||||
| 			else | ||||
| 				op = Op_Invalid; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user