mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-22 20:30:04 +00:00
Merge pull request #525 from asuessenbach/check
Reduced exception on encountering an unknown element to a warning.
This commit is contained in:
commit
9bc920a8c9
@ -210,7 +210,7 @@ void checkElements(int line, std::vector<tinyxml2::XMLElement const*> const& ele
|
||||
{
|
||||
std::string value = e->Value();
|
||||
encountered[value]++;
|
||||
check((required.find(value) != required.end()) || (optional.find(value) != optional.end()), e->GetLineNum(), "unknown element <" + value + ">");
|
||||
warn((required.find(value) != required.end()) || (optional.find(value) != optional.end()), e->GetLineNum(), "unknown element <" + value + ">");
|
||||
}
|
||||
for (auto const& r : required)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user