aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/vulkan/vulkan_hpp_macros.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/vulkan/vulkan_hpp_macros.hpp')
-rw-r--r--include/vulkan/vulkan_hpp_macros.hpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/vulkan/vulkan_hpp_macros.hpp b/include/vulkan/vulkan_hpp_macros.hpp
index 9526a76..9035af1 100644
--- a/include/vulkan/vulkan_hpp_macros.hpp
+++ b/include/vulkan/vulkan_hpp_macros.hpp
@@ -1,4 +1,4 @@
-// Copyright 2015-2023 The Khronos Group Inc.
+// Copyright 2015-2024 The Khronos Group Inc.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
@@ -277,4 +277,21 @@ namespace VULKAN_HPP_NAMESPACE
# define VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT = VULKAN_HPP_DEFAULT_DISPATCHER
#endif
+#if !defined( VULKAN_HPP_EXPECTED ) && ( 23 <= VULKAN_HPP_CPP_VERSION ) && defined( __cpp_lib_expected )
+# include <expected>
+# define VULKAN_HPP_EXPECTED std::expected
+# define VULKAN_HPP_UNEXPECTED std::unexpected
+#endif
+
+#if !defined( VULKAN_HPP_RAII_NAMESPACE )
+# define VULKAN_HPP_RAII_NAMESPACE raii
+#endif
+
+#if defined( VULKAN_HPP_NO_EXCEPTIONS ) && defined( VULKAN_HPP_EXPECTED )
+# define VULKAN_HPP_RAII_NO_EXCEPTIONS
+# define VULKAN_HPP_RAII_CREATE_NOEXCEPT noexcept
+#else
+# define VULKAN_HPP_RAII_CREATE_NOEXCEPT
+#endif
+
#endif \ No newline at end of file