================ idTypeDef::AddFunction ================ */
| 545 | ================ |
| 546 | */ |
| 547 | void idTypeDef::AddFunction( const function_t *func ) { |
| 548 | int i; |
| 549 | |
| 550 | for( i = 0; i < functions.Num(); i++ ) { |
| 551 | if ( !strcmp( functions[ i ]->def->Name(), func->def->Name() ) ) { |
| 552 | if ( func->def->TypeDef()->MatchesVirtualFunction( *functions[ i ]->def->TypeDef() ) ) { |
| 553 | functions[ i ] = func; |
| 554 | return; |
| 555 | } |
| 556 | } |
| 557 | } |
| 558 | functions.Append( func ); |
| 559 | } |
| 560 | |
| 561 | /*********************************************************************** |
| 562 |
no test coverage detected