MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / LoadFile

Method LoadFile

ReClass/tinyxml2.cpp:2160–2171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2158
2159
2160XMLError XMLDocument::LoadFile( const char* filename )
2161{
2162 Clear();
2163 FILE* fp = callfopen( filename, "rb" );
2164 if ( !fp ) {
2165 SetError( XML_ERROR_FILE_NOT_FOUND, filename, 0, 0 );
2166 return _errorID;
2167 }
2168 LoadFile( fp );
2169 fclose( fp );
2170 return _errorID;
2171}
2172
2173// This is likely overengineered template art to have a check that unsigned long value incremented
2174// by one still fits into size_t. If size_t type is larger than unsigned long type

Callers 3

OnFileOpenMethod · 0.45
LoadSymbolsForModuleMethod · 0.45
LoadSymbolsForPdbMethod · 0.45

Calls 1

callfopenFunction · 0.85

Tested by

no test coverage detected