]> git.tdb.fi Git - libs/core.git/blob - source/core/windows/application.cpp
Move most platform-specific code into overlay directories
[libs/core.git] / source / core / windows / application.cpp
1 #include <windows.h>
2 #include <typeinfo>
3 #include <msp/debug/demangle.h>
4 #include "application.h"
5
6 using namespace std;
7
8 namespace Msp {
9
10 void Application::display_exception(const exception &e)
11 {
12         string msg = Debug::demangle(typeid(e).name())+":\n"+e.what();
13         MessageBoxA(0, msg.c_str(), "Uncaught exception", MB_OK|MB_ICONERROR);
14 }
15
16 } // namespace Msp