From 605ff244876c9dcd878640bf17396ad31bccaec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Mon, 15 Oct 2018 14:27:42 +0200 Subject: [PATCH] Add an error check on functions returning VkResult but not specifying success codes. (#262) --- VulkanHppGenerator.cpp | 13 +++++++++++++ VulkanHppGenerator.hpp | 1 + 2 files changed, 14 insertions(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index fd4a86b..d5cc3c2 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1415,6 +1415,18 @@ bool VulkanHppGenerator::containsUnion(std::string const& type, std::map VulkanHppGenerator::createDefaults() { std::map defaultValues; @@ -5219,6 +5231,7 @@ int main( int argc, char **argv ) } } + generator.checkCorrectness(); generator.sortDependencies(); #if !defined(NDEBUG) diff --git a/VulkanHppGenerator.hpp b/VulkanHppGenerator.hpp index b6f9d7b..381ffd2 100644 --- a/VulkanHppGenerator.hpp +++ b/VulkanHppGenerator.hpp @@ -30,6 +30,7 @@ class VulkanHppGenerator m_handles.insert(std::make_pair("", HandleData())); // insert the default "handle" without class (for createInstance, and such) } + void checkCorrectness(); std::map createDefaults(); std::string const& getTypesafeCheck() const; std::string const& getVersion() const;