This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
glyphs-juke/common.h

23 lines
333 B
C
Raw Normal View History

2021-08-21 08:29:58 +00:00
#pragma once
#include <codecvt>
#include <cstdlib>
#include <sstream>
#include <string>
#include <windows.h>
namespace gj {
[[noreturn]]
static inline void Abort(const std::string& msg) {
std::wostringstream conv;
conv << msg.c_str();
MessageBox(NULL, conv.str().c_str(), L"PROGRAM ABORTED", MB_OK);
std::exit(1);
}
}