From 0d65f6a1421b8fa1514915d7789685dd47d9fcc1 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Thu, 27 Feb 2020 08:58:57 +0100 Subject: [PATCH] Reduced exception on encountering an unknown element to a warning. --- VulkanHppGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index fe9866c..63d8c23 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -210,7 +210,7 @@ void checkElements(int line, std::vector 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) {