From cbff9067dc372e08beca4cbb248981907c3d15ee Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Mon, 17 Feb 2020 14:20:40 +0100 Subject: [PATCH] Define VULKAN_HPP_NO_SMART_HANDLE if VULKAN_HPP_DISABLE_ENHANCED_MODE is defined. Resolves #509. --- VulkanHppGenerator.cpp | 6 +++++- vulkan/vulkan.hpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 68ef009..d1454a4 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -6260,7 +6260,11 @@ static const std::string constExpressionArrayCopy = R"( #include #include -#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +#if defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +# if !defined(VULKAN_HPP_NO_SMART_HANDLE) +# define VULKAN_HPP_NO_SMART_HANDLE +# endif +#else # include # include #endif diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 1d092c5..3d4ba3d 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -46,7 +46,11 @@ #include #include -#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +#if defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +# if !defined(VULKAN_HPP_NO_SMART_HANDLE) +# define VULKAN_HPP_NO_SMART_HANDLE +# endif +#else # include # include #endif