don't define THROW_ON_INVALID_XML by default on NDEBUG builds, fixes #179

This commit is contained in:
Thomas Fussell 2017-09-08 10:36:49 -04:00
parent 2aaabb0579
commit 50280ba2ab

View File

@ -63,10 +63,6 @@ xml::qname qn(const std::string &namespace_, const std::string &name)
return xml::qname(xlnt::constants::ns(namespace_), name); return xml::qname(xlnt::constants::ns(namespace_), name);
} }
#ifndef NDEBUG
#define THROW_ON_INVALID_XML
#endif
#ifdef THROW_ON_INVALID_XML #ifdef THROW_ON_INVALID_XML
#define unexpected_element(element) throw xlnt::exception(element.string()); #define unexpected_element(element) throw xlnt::exception(element.string());
#else #else