From f0767988c9ea08ed685f399476689aff91f97203 Mon Sep 17 00:00:00 2001 From: mocabe Date: Thu, 25 Jun 2020 21:16:43 +0900 Subject: [PATCH] [HPP] Add VULKAN_HPP_ASSERT_ON_RESULT --- VulkanHppGenerator.cpp | 4 ++++ vulkan/vulkan.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index e6e40ba..83ff9b9 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -7947,6 +7947,10 @@ static_assert( false, "vulkan.hpp needs at least c++ standard version 11" ); # define VULKAN_HPP_ASSERT assert #endif +#if !defined(VULKAN_HPP_ASSERT_ON_RESULT) +# define VULKAN_HPP_ASSERT_ON_RESULT VULKAN_HPP_ASSERT +#endif + #if !defined(VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL) # define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1 #endif diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 19bae6a..e90841d 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -57,6 +57,10 @@ static_assert( false, "vulkan.hpp needs at least c++ standard version 11" ); # define VULKAN_HPP_ASSERT assert #endif +#if !defined( VULKAN_HPP_ASSERT_ON_RESULT ) +# define VULKAN_HPP_ASSERT_ON_RESULT VULKAN_HPP_ASSERT +#endif + #if !defined( VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL ) # define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1 #endif