Add [[noreturn]] and remove VULKAN_HPP_INLINE to/from function throwResultException (#430)

Resolves issue #406
This commit is contained in:
Andreas Süßenbach 2019-11-07 15:42:10 +01:00 committed by Markus Tavenrath
parent 3fc2ea47fd
commit 581b7cb227
2 changed files with 2 additions and 2 deletions

View File

@ -2847,7 +2847,7 @@ void VulkanHppGenerator::appendThrowExceptions(std::string & str) const
auto enumData = m_enums.find("VkResult");
str += "\n"
" VULKAN_HPP_INLINE void throwResultException( Result result, char const * message )\n"
" [[noreturn]] static void throwResultException( Result result, char const * message )\n"
" {\n"
" switch ( result )\n"
" {\n";

View File

@ -12558,7 +12558,7 @@ namespace VULKAN_HPP_NAMESPACE
: SystemError( make_error_code( Result::eErrorFullScreenExclusiveModeLostEXT ), message ) {}
};
VULKAN_HPP_INLINE void throwResultException( Result result, char const * message )
[[noreturn]] static void throwResultException( Result result, char const * message )
{
switch ( result )
{