MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / LoadFile

Method LoadFile

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1966–1977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1964
1965
1966XMLError XMLDocument::LoadFile( const char* filename )
1967{
1968 Clear();
1969 FILE* fp = callfopen( filename, "rb" );
1970 if ( !fp ) {
1971 SetError( XML_ERROR_FILE_NOT_FOUND, filename, 0 );
1972 return _errorID;
1973 }
1974 LoadFile( fp );
1975 fclose( fp );
1976 return _errorID;
1977}
1978
1979// This is likely overengineered template art to have a check that unsigned long value incremented
1980// by one still fits into size_t. If size_t type is larger than unsigned long type

Callers 1

LoadAppScriptMethod · 0.45

Calls 2

callfopenFunction · 0.85
ClearFunction · 0.50

Tested by

no test coverage detected