libcruft-vk/except.hpp

24 lines
415 B
C++
Raw Normal View History

2016-02-24 11:11:41 +11:00
#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