================ idTypeDef::Inherits Returns true if basetype is an ancestor of this type. ================ */
| 205 | ================ |
| 206 | */ |
| 207 | bool idTypeDef::Inherits( const idTypeDef *basetype ) const { |
| 208 | idTypeDef *superType; |
| 209 | |
| 210 | if ( type != ev_object ) { |
| 211 | return false; |
| 212 | } |
| 213 | |
| 214 | if ( this == basetype ) { |
| 215 | return true; |
| 216 | } |
| 217 | for( superType = auxType; superType != NULL; superType = superType->auxType ) { |
| 218 | if ( superType == basetype ) { |
| 219 | return true; |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | return false; |
| 224 | } |
| 225 | |
| 226 | /* |
| 227 | ================ |
no outgoing calls
no test coverage detected