| 77 | } |
| 78 | |
| 79 | inline Platform ParsePlatform( const char* name ) |
| 80 | { |
| 81 | for( int32_t i = 0; i < _PLATFORM_END; ++i ) |
| 82 | { |
| 83 | if( IsValidPlatform( Platform( i ) ) ) |
| 84 | { |
| 85 | if( strcmp( GetPlatformIdString( Platform( i ) ), name ) == 0 ) |
| 86 | { |
| 87 | return Platform( i ); |
| 88 | } |
| 89 | if( _stricmp( GetPlatformShortName( Platform( i ) ), name ) == 0 ) |
| 90 | { |
| 91 | return Platform( i ); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | return PLATFORM_INVALID; |
| 96 | } |
no test coverage detected