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