------------------------------------------------------------------------------------------------ Returns the error text of the last failed import process.
| 482 | // ------------------------------------------------------------------------------------------------ |
| 483 | // Returns the error text of the last failed import process. |
| 484 | aiBool aiIsExtensionSupported(const char *szExtension) { |
| 485 | ai_assert(nullptr != szExtension); |
| 486 | aiBool candoit = AI_FALSE; |
| 487 | ASSIMP_BEGIN_EXCEPTION_REGION(); |
| 488 | |
| 489 | // FIXME: no need to create a temporary Importer instance just for that .. |
| 490 | Assimp::Importer tmp; |
| 491 | candoit = tmp.IsExtensionSupported(std::string(szExtension)) ? AI_TRUE : AI_FALSE; |
| 492 | |
| 493 | ASSIMP_END_EXCEPTION_REGION(aiBool); |
| 494 | return candoit; |
| 495 | } |
| 496 | |
| 497 | // ------------------------------------------------------------------------------------------------ |
| 498 | // Get a list of all file extensions supported by ASSIMP |
no test coverage detected