X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fwindows%2Fapplication.cpp;fp=source%2Fcore%2Fwindows%2Fapplication.cpp;h=ed8702a00bf33835b85486ddcb0ff8aa9add62ec;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hp=0000000000000000000000000000000000000000;hpb=b4806214e905752617691f851717033fd3f266c2;p=libs%2Fcore.git diff --git a/source/core/windows/application.cpp b/source/core/windows/application.cpp new file mode 100644 index 0000000..ed8702a --- /dev/null +++ b/source/core/windows/application.cpp @@ -0,0 +1,16 @@ +#include +#include +#include +#include "application.h" + +using namespace std; + +namespace Msp { + +void Application::display_exception(const exception &e) +{ + string msg = Debug::demangle(typeid(e).name())+":\n"+e.what(); + MessageBoxA(0, msg.c_str(), "Uncaught exception", MB_OK|MB_ICONERROR); +} + +} // namespace Msp