Define VULKAN_HPP_NO_SMART_HANDLE if VULKAN_HPP_DISABLE_ENHANCED_MODE is defined.

Resolves #509.
This commit is contained in:
asuessenbach 2020-02-17 14:20:40 +01:00 committed by Markus Tavenrath
parent f9d90dfd1c
commit cbff9067dc
2 changed files with 10 additions and 2 deletions

View File

@ -6260,7 +6260,11 @@ static const std::string constExpressionArrayCopy = R"(
#include <type_traits>
#include <vulkan/vulkan.h>
#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 <memory>
# include <vector>
#endif

View File

@ -46,7 +46,11 @@
#include <type_traits>
#include <vulkan/vulkan.h>
#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 <memory>
# include <vector>
#endif