MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / PrintError

Method PrintError

sourcecommon/tinyxml2.cpp:1851–1868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1849}
1850
1851void XMLDocument::PrintError() const
1852{
1853 if ( _errorID ) {
1854 static const int LEN = 20;
1855 char buf1[LEN] = { 0 };
1856 char buf2[LEN] = { 0 };
1857
1858 if ( _errorStr1 ) {
1859 TIXML_SNPRINTF( buf1, LEN, "%s", _errorStr1 );
1860 }
1861 if ( _errorStr2 ) {
1862 TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 );
1863 }
1864
1865 printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
1866 _errorID, ErrorName(), buf1, buf2 );
1867 }
1868}
1869
1870
1871XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) :

Callers

nothing calls this directly

Calls 1

TIXML_SNPRINTFFunction · 0.85

Tested by

no test coverage detected