MCPcopy Create free account
hub / github.com/assimp/assimp / aiIsExtensionSupported

Function aiIsExtensionSupported

code/Common/Assimp.cpp:484–495  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Returns the error text of the last failed import process.

Source from the content-addressed store, hash-verified

482// ------------------------------------------------------------------------------------------------
483// Returns the error text of the last failed import process.
484aiBool 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

Callers 1

mainFunction · 0.85

Calls 1

IsExtensionSupportedMethod · 0.45

Tested by

no test coverage detected