24 lines
415 B
C++
24 lines
415 B
C++
#ifndef __VK_EXCEPT_HPP
|
|
#define __VK_EXCEPT_HPP
|
|
|
|
#include "./vk.hpp"
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace vk {
|
|
class error : public std::exception {
|
|
public:
|
|
static void try_code (VkResult);
|
|
static void throw_code [[noreturn]] (VkResult);
|
|
};
|
|
|
|
|
|
template <VkResult>
|
|
class error_code : public error {
|
|
public:
|
|
const char* what (void) const noexcept override;
|
|
};
|
|
}
|
|
|
|
#endif
|