mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add [[noreturn]] and remove VULKAN_HPP_INLINE to/from function throwResultException (#430)
Resolves issue #406
This commit is contained in:
parent
3fc2ea47fd
commit
581b7cb227
@ -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";
|
||||
|
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user