mirror of https://github.com/AxioDL/tinyxml2.git
fix line number tracker. error msg wip
This commit is contained in:
parent
aa1883928b
commit
714ccfe29b
|
@ -2301,6 +2301,7 @@ void XMLDocument::SetError( XMLError error, int lineNum, const char* format, ...
|
|||
{
|
||||
TIXMLASSERT( error >= 0 && error < XML_ERROR_COUNT );
|
||||
_errorID = error;
|
||||
_errorLineNum = lineNum;
|
||||
_errorStr.Reset();
|
||||
|
||||
if (format) {
|
||||
|
|
|
@ -499,9 +499,13 @@ int main( int argc, const char ** argv )
|
|||
int value2 = doc->FirstChildElement()->LastChildElement()->IntAttribute( "attrib", replacementIntValue );
|
||||
XMLError result = doc->FirstChildElement()->LastChildElement()->QueryIntAttribute( "attrib", &value1 );
|
||||
XMLTest( "Programmatic DOM", XML_NO_ATTRIBUTE, result );
|
||||
doc->PrintError();
|
||||
XMLTest( "Programmatic DOM", defaultIntValue, value1 );
|
||||
XMLTest( "Programmatic DOM", replacementIntValue, value2 );
|
||||
|
||||
|
||||
exit(0);
|
||||
|
||||
doc->Print();
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue