commit | 5a70071241e3c31684eed339f0a00162e2f607b8 | [log] [tgz] |
---|---|---|
author | kezenator <github@kezenator.com> | Sat Nov 26 13:54:42 2016 +1000 |
committer | kezenator <github@kezenator.com> | Sat Nov 26 13:54:42 2016 +1000 |
tree | ad5c01cb531efc9ec4e89f3e71561d9c4aebea1d | |
parent | f80d78d9385ef08d70181e286328a89b64532f70 [diff] [blame] |
Added static method to convert arbitrary ErrorID to a string. Updated tests to print ErrorID and bool values as strings.
diff --git a/tinyxml2.h b/tinyxml2.h index 12b204f..b7f822f 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -1749,6 +1749,7 @@ return _errorID; } const char* ErrorName() const; + static const char* ErrorName(XMLError errorID); /// Return a possibly helpful diagnostic location or string. const char* GetErrorStr1() const {