7#include "../macros.hpp"
8#include "win32_error_intf.hpp"
10hi_export_module(hikogui.win32 : win32_error_impl);
12hi_export
namespace hi {
inline namespace v1 {
14[[nodiscard]]
inline std::string win32_error_category::message(
int code)
const
16 if (
auto msg = win32_FormatMessage(
static_cast<win32_error
>(code))) {
20 throw std::system_error(msg.error());
The HikoGUI namespace.
Definition array_generic.hpp:21
The HikoGUI API version 1.
Definition array_generic.hpp:22