mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 23:36:12 -08: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 );
 | 
						Using_Code( CodeSpecifiers );
 | 
				
			||||||
	bool       append( Specifier spec )            { return specifiers_append(* this, spec); }
 | 
						bool       append( Specifier spec )            { return specifiers_append(* this, spec); }
 | 
				
			||||||
	s32        has( Specifier spec )               { return specifiers_has(* 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); }
 | 
						s32        remove( Specifier to_remove )       { return specifiers_remove(* this, to_remove); }
 | 
				
			||||||
	StrBuilder to_strbuilder()                     { return specifiers_to_strbuilder(* this ); }
 | 
						StrBuilder to_strbuilder()                     { return specifiers_to_strbuilder(* this ); }
 | 
				
			||||||
	void       to_strbuilder( StrBuilder& result ) { return specifiers_to_strbuilder_ref(* this, & result); }
 | 
						void       to_strbuilder( StrBuilder& result ) { return specifiers_to_strbuilder_ref(* this, & result); }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2390,7 +2390,10 @@ CodeOperator parse_operator_after_ret_type(
 | 
				
			|||||||
		case '(':
 | 
							case '(':
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if ( currtok.Text.Ptr[1] == ')' )
 | 
								if ( currtok.Text.Ptr[1] == ')' )
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
				op = Op_FunctionCall;
 | 
									op = Op_FunctionCall;
 | 
				
			||||||
 | 
									eat(Tok_Paren_Open);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				op = Op_Invalid;
 | 
									op = Op_Invalid;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user