MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / PrintError

Method PrintError

src/xml/tinyxml2.cpp:1790–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1788}
1789
1790void XMLDocument::PrintError() const {
1791 if ( Error() ) {
1792 static const int LEN = 20;
1793 char buf1[LEN] = { 0 };
1794 char buf2[LEN] = { 0 };
1795
1796 if ( _errorStr1 ) {
1797 TIXML_SNPRINTF( buf1, LEN, "%s", _errorStr1 );
1798 }
1799 if ( _errorStr2 ) {
1800 TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 );
1801 }
1802
1803 printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
1804 _errorID, ErrorName(), buf1, buf2 );
1805 }
1806}
1807
1808void XMLDocument::Parse() {
1809 TIXMLASSERT( NoChildren() ); // Clear() must have been called previously

Callers

nothing calls this directly

Calls 2

ErrorFunction · 0.85
TIXML_SNPRINTFFunction · 0.85

Tested by

no test coverage detected