MCPcopy Create free account
hub / github.com/JayXon/Leanify / PrintError

Method PrintError

lib/tinyxml2/tinyxml2.cpp:1941–1958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1939}
1940
1941void XMLDocument::PrintError() const
1942{
1943 if ( Error() ) {
1944 static const int LEN = 20;
1945 char buf1[LEN] = { 0 };
1946 char buf2[LEN] = { 0 };
1947
1948 if ( _errorStr1 ) {
1949 TIXML_SNPRINTF( buf1, LEN, "%s", _errorStr1 );
1950 }
1951 if ( _errorStr2 ) {
1952 TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 );
1953 }
1954
1955 printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
1956 _errorID, ErrorName(), buf1, buf2 );
1957 }
1958}
1959
1960void XMLDocument::Parse()
1961{

Callers

nothing calls this directly

Calls 2

ErrorFunction · 0.85
TIXML_SNPRINTFFunction · 0.85

Tested by

no test coverage detected