mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
don't define THROW_ON_INVALID_XML by default on NDEBUG builds, fixes #179
This commit is contained in:
parent
2aaabb0579
commit
50280ba2ab
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user